运检跳转修改
This commit is contained in:
parent
df524ee7c7
commit
1e39716524
|
|
@ -9,6 +9,7 @@
|
|||
import {
|
||||
getToken
|
||||
} from '@/utils/auth';
|
||||
import Cookies from "js-cookie";
|
||||
// import '@/utils/webview.js'
|
||||
let wv // 计划创建的webview
|
||||
export default {
|
||||
|
|
@ -55,14 +56,19 @@
|
|||
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' // 测试
|
||||
// });
|
||||
this.$router.push({ path: '/pages/index' })
|
||||
this.$router.push({ path: '/pages/index' })
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue