Sfoglia il codice sorgente

Merge branch 'master' of http://git.izouma.com/xiongzhu/9th

xuqiang 4 anni fa
parent
commit
381aa129ab
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 7 5
      src/main/nine-space/src/views/Store.vue

+ 7 - 5
src/main/nine-space/src/views/Store.vue

@@ -256,11 +256,13 @@ export default {
         changeActive(active) {
         changeActive(active) {
             this.active = active;
             this.active = active;
             this.loading = true;
             this.loading = true;
-            this.$nextTick(() => {
-                this.type = this.typeOptions[0].type;
-            });
-            this.page = 0;
-            this.getList();
+            setTimeout(() => {
+                this.$nextTick(() => {
+                    this.type = this.typeOptions[0].type;
+                    this.page = 0;
+                    this.getList();
+                });
+            }, 100);
         },
         },
         changeTab() {
         changeTab() {
             if (this.active !== 'coupon') {
             if (this.active !== 'coupon') {