diff --git a/src/app/views/my/index.vue b/src/app/views/my/index.vue index 89952fe80d17627e05491aec1d96d0eff2007600..56c9f67206dd12998cbd5ffe236b222865d88007 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']);