|
@@ -230,14 +230,15 @@ export default {
|
|
|
content: '确定注销登录?',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
+ uni.removeStorageSync('token');
|
|
|
+ uni.removeStorageSync('info');
|
|
|
+ uni.removeStorageSync('menu');
|
|
|
+ uni.redirectTo({ url: '/pages/login/login' });
|
|
|
this.http.request({
|
|
|
url: '/sp-admin/app/AppUser/logout',
|
|
|
data: param,
|
|
|
success: res => {
|
|
|
- uni.removeStorageSync('token');
|
|
|
- uni.removeStorageSync('info');
|
|
|
- uni.removeStorageSync('menu');
|
|
|
- uni.redirectTo({ url: '/pages/login/login' });
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
}
|