This commit is contained in:
zpc 2025-04-24 12:27:14 +08:00
parent 5b5885c819
commit 8b06e8e018
4 changed files with 9 additions and 12 deletions

View File

@ -277,7 +277,8 @@ class RequestManager {
icon: 'none'
})
}, 100)
uni.removeStorageSync('token');
uni.removeStorageSync('userinfo');
// 使用新的路由守卫方法进行跳转
RouterManager.navigateTo('/pages/user/login', {}, 'navigateTo')
.catch(err => {

View File

@ -157,6 +157,8 @@ export function routerTo(options) {
break;
}
} else {
// console.log('url',url,params,type,isInWhiteList(url),isLogin());
// 未指定跳转方式先尝试navigateTo失败后尝试switchTab
uni.navigateTo({
url,

View File

@ -917,14 +917,7 @@ export default {
},
open(e) {
if (e == "sendPop") {
uni.showToast({
title: '发货未开放',
icon: 'none',
duration: 1000
})
return;
}
this.handelList = []
const choose = this.getChooseGoods()

View File

@ -494,9 +494,10 @@
this.$refs.qunliao_show.open()
break
default:
this.$c.to({
url: item.path
})
this.$customRouter.navigateTo(item.path)
// this.$c.to({
// url: item.path
// })
break
}
},