运检跳转修改

This commit is contained in:
zzyuan 2025-06-12 17:33:26 +08:00
parent df524ee7c7
commit 1e39716524
1 changed files with 10 additions and 4 deletions

View File

@ -9,6 +9,7 @@
import {
getToken
} from '@/utils/auth';
import Cookies from "js-cookie";
// import '@/utils/webview.js'
let wv // webview
export default {
@ -55,9 +56,14 @@
url: '/pages/system'
});
}else if (event.data.data.arg.action == 'logOut') {
uni.reLaunch({
url: '/pages/login'
});
// uni.reLaunch({
// url: '/pages/login'
// });
this.$store.dispatch('LogOut').then(() => {
uni.removeStorageSync('token')
Cookies.remove('token')
uni.reLaunch({ url: '/pages/login' })
})
}else if (event.data.data.arg.action == 'sbdCanteen') {// sbd
// uni.reLaunch({
// url: '/pages/index' //