panhui 4 ani în urmă
părinte
comite
71a098fbdd
1 a modificat fișierele cu 7 adăugiri și 5 ștergeri
  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) {
             this.active = active;
             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() {
             if (this.active !== 'coupon') {