Bläddra i källkod

Merge branch 'master' of http://git.izouma.com/panhui/lasuo_nft_front

panhui 3 år sedan
förälder
incheckning
12d718a30b
3 ändrade filer med 14 tillägg och 1 borttagningar
  1. 7 0
      src/views/Home.vue
  2. 7 0
      src/views/Mine.vue
  3. 0 1
      src/views/account/Login.vue

+ 7 - 0
src/views/Home.vue

@@ -316,8 +316,15 @@ export default {
         let that = this;
         let that = this;
         // that.getList();
         // that.getList();
         that.getBanner();
         that.getBanner();
+        // location.reload()
         // that.getUser();
         // that.getUser();
     },
     },
+    noReloaded: function () {
+        if (location.href.indexOf('#reloaded') == -1) {
+            location.href = location.href + '#reloaded';
+            window.location.reload();
+        }
+    },
     activated() {
     activated() {
         this.$nextTick(() => {
         this.$nextTick(() => {
             this.changeScroll(this.scrollTop);
             this.changeScroll(this.scrollTop);

+ 7 - 0
src/views/Mine.vue

@@ -209,6 +209,7 @@ export default {
         };
         };
     },
     },
     mounted() {
     mounted() {
+        // location.reload()
         this.$store.dispatch('getUserInfo');
         this.$store.dispatch('getUserInfo');
         if (this.isLogin) {
         if (this.isLogin) {
             this.$http
             this.$http
@@ -264,6 +265,12 @@ export default {
         //         this.$el.parentNode.childNodes[1].className.replace(/ bgBack/, '') + ' bgBack';
         //         this.$el.parentNode.childNodes[1].className.replace(/ bgBack/, '') + ' bgBack';
         // });
         // });
     },
     },
+    noReloaded: function () {
+        if (location.href.indexOf('#reloaded') == -1) {
+            location.href = location.href + '#reloaded';
+            window.location.reload();
+        }
+    },
     methods: {
     methods: {
         // 复制
         // 复制
         copy() {
         copy() {

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

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