From 172edd265b16c1ec76535a6add849a20c9d46cc5 Mon Sep 17 00:00:00 2001 From: zhangshuaipeng Date: Sun, 3 Dec 2023 13:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=8F=92=E4=BB=B6=E9=80=80?= =?UTF-8?q?=E5=87=BA=E9=80=BB=E8=BE=91=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/views/my/index.vue | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/app/views/my/index.vue b/src/app/views/my/index.vue index 89952fe..56c9f67 100644 --- a/src/app/views/my/index.vue +++ b/src/app/views/my/index.vue @@ -214,9 +214,10 @@ export default { }, // 更换头像 updateHeader() { - if (!window.plus) { - return false; - } + return false; + // if (!window.plus) { + // return false; + // } const that = this; plus.nativeUI.actionSheet( @@ -342,8 +343,23 @@ export default { }, // 退出登录 logout() { - if(window.plus){ - plus.runtime.quit(); + if(window.plus && mui.os.ios){ + //如果是苹果设备 + try { + //清空苹果设备缓存 + plus.storage.clear(); + //重启应用 + plus.runtime.restart(); + } catch (error) { + + } + }else if(window.plus){ + try { + JE.logout(); + //plus.runtime.quit(); + } catch (error) { + + } }else{ JE.logout(); Waves.attach('.my-logout', ['waves-button', 'waves-float']); -- Gitee