运检跳转修改
This commit is contained in:
parent
df524ee7c7
commit
1e39716524
|
|
@ -9,6 +9,7 @@
|
||||||
import {
|
import {
|
||||||
getToken
|
getToken
|
||||||
} from '@/utils/auth';
|
} from '@/utils/auth';
|
||||||
|
import Cookies from "js-cookie";
|
||||||
// import '@/utils/webview.js'
|
// import '@/utils/webview.js'
|
||||||
let wv // 计划创建的webview
|
let wv // 计划创建的webview
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -55,9 +56,14 @@
|
||||||
url: '/pages/system'
|
url: '/pages/system'
|
||||||
});
|
});
|
||||||
}else if (event.data.data.arg.action == 'logOut') {
|
}else if (event.data.data.arg.action == 'logOut') {
|
||||||
uni.reLaunch({
|
// uni.reLaunch({
|
||||||
url: '/pages/login'
|
// 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食堂
|
}else if (event.data.data.arg.action == 'sbdCanteen') {// 跳转到sbd食堂
|
||||||
// uni.reLaunch({
|
// uni.reLaunch({
|
||||||
// url: '/pages/index' // 测试
|
// url: '/pages/index' // 测试
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue