提交修改

This commit is contained in:
有果 2026-05-15 13:33:26 +08:00
parent edcdc2808b
commit 25ca4ccb31
2 changed files with 9 additions and 4 deletions

View File

@ -283,7 +283,9 @@ const toHome = (item) => {
}
const goOrder = () => {
navigateTo('/pages/unlock/index');
uni.switchTab({
url: `/pages/unlock/index`,
});
}

View File

@ -68,9 +68,12 @@ export const useMainStore = defineStore('main', () => {
const logOut = ()=>{
storeState.value.token = ''
storeState.value.userInfo = {}
uni.removeStorage({
key:'token'
}); // 清除缓存
// 如果是开发环境 就不清token 避免开发的时候后端服务没起来 每次都要重新登录
if(process.env.NODE_ENV !== 'development'){
uni.removeStorage({
key:'token'
}); // 清除缓存
}
}
const setLocation = (location) => {