yuany 3 лет назад
Родитель
Сommit
48f25331a4
3 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      src/views/Home.vue
  2. 1 0
      src/views/Mine.vue
  3. 0 1
      src/views/account/Login.vue

+ 1 - 0
src/views/Home.vue

@@ -316,6 +316,7 @@ export default {
         let that = this;
         // that.getList();
         that.getBanner();
+        location.reload()
         // that.getUser();
     },
     activated() {

+ 1 - 0
src/views/Mine.vue

@@ -209,6 +209,7 @@ export default {
         };
     },
     mounted() {
+        location.reload()
         this.$store.dispatch('getUserInfo');
         if (this.isLogin) {
             this.$http

+ 0 - 1
src/views/account/Login.vue

@@ -139,7 +139,6 @@ export default {
             });
             this.check().then(() => {
                 this.$toast.success('登录成功');
-                location.reload()
                 setTimeout(() => {
                     if (this.$store.state.loginBackUrl) {
                         this.$router.replace(this.$store.state.loginBackUrl);