代码优化
This commit is contained in:
@@ -34,9 +34,9 @@ module.exports = {
|
||||
const pagePath = currentPage.route
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const isIOS = /iOS/.test(systemInfo.platform);
|
||||
if ( pagePath == "pages/task/index") {
|
||||
return;
|
||||
}
|
||||
// if ( pagePath == "pages/task/index") {
|
||||
// return;
|
||||
// }
|
||||
uni.removeStorageSync("token")
|
||||
uni.removeStorageSync("userId")
|
||||
uni.removeStorageSync("phone")
|
||||
@@ -52,9 +52,7 @@ module.exports = {
|
||||
title: '用户信息失效,请重新登录!',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
})
|
||||
uni.navigateTo({ url: "/pages/login/login" })
|
||||
},
|
||||
post: function(url, data, header) {
|
||||
let that = this;
|
||||
|
||||
Reference in New Issue
Block a user