Parcourir la source

mixin.js 中在 login 成功后刷新当前页面

reghao il y a 3 mois
Parent
commit
d854367b82
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/assets/js/mixin.js

+ 2 - 2
src/assets/js/mixin.js

@@ -190,9 +190,9 @@ export const userMixin = {
           store.commit('SET_USER_INFO', userInfo)
 
           // 刷新当前页面
-          // this.$router.go(0)
+          this.$router.go(0)
           // 返回上个页面
-          this.$router.go(-1)
+          // this.$router.go(-1)
           // 返回上上个页面
           // this.$router.go(-2)
           this.userLogin = {