|
|
@@ -993,6 +993,7 @@ router.beforeEach((to, from, next) => {
|
|
|
next();
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ let that = this
|
|
|
if (to.meta.checkLogin) {
|
|
|
next(false);
|
|
|
MessageBox.confirm('用户未登录,是否立即登录', '提示', {
|
|
|
@@ -1000,11 +1001,11 @@ router.beforeEach((to, from, next) => {
|
|
|
cancelButtonText: '取消'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- // this.$store.commit('loginVerification', true);
|
|
|
+ store.commit('loginVerification', true);
|
|
|
// router.push('/login')
|
|
|
- router.push({
|
|
|
- name: "home"
|
|
|
- })
|
|
|
+ // router.push({
|
|
|
+ // name: "home"
|
|
|
+ // })
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
// next('/login');
|