10.9提交
This commit is contained in:
@@ -547,17 +547,21 @@ const appdownLoad = (url) => {
|
||||
content: '确定要退出登录吗?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
// 清除登录状态
|
||||
uni.clearStorageSync();
|
||||
// 跳转到登录页面
|
||||
uni.reLaunch({
|
||||
url: '/pages_app/login/login'
|
||||
});
|
||||
logoutIm();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const logoutIm=() => {
|
||||
uni.clearStorageSync();
|
||||
// 退出登录
|
||||
uni.$UIKitNIM.V2NIMLoginService.logout().then(() => {
|
||||
uni.$UIKitStore.destroy();
|
||||
uni.reLaunch({
|
||||
url: "/pages_app/login/login",
|
||||
});
|
||||
});
|
||||
};
|
||||
onShow(() => {
|
||||
isNoticeOn()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user