Selaa lähdekoodia

限制调用时机

Luolei 6 vuotta sitten
vanhempi
commit
4c3985ae9e
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      src/components/icss/PubTagGroup.vue

+ 5 - 5
src/components/icss/PubTagGroup.vue

@@ -294,17 +294,16 @@ export default {
   watch: {
     newSex(nextVal, prevVal) {
       this.tmpSex = prevVal;
-      this.searchTagList()
+      if (nextVal != prevVal || this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7 || this.form.region2 == 9) {
+        this.searchTagList()
+      }
     },
     newType(nextVal, prevVal) {
       this.tmpOwn = prevVal;
-      if (nextVal != prevVal) {
-        // this.searchTagList()
-      }
     },
     newSign(nextVal, prevVal) {
       this.tmpType = prevVal;
-      if (nextVal != prevVal) {
+      if (nextVal != prevVal || this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7 || this.form.region2 == 9) {
         this.searchTagList()
       }
     },
@@ -324,6 +323,7 @@ export default {
       })
     },
     searchTagList() {
+      console.log(999)
       let region1 = this.form.region1, region2 = this.form.region2;
       let param1 = !!region2 ? api.getGroupParams(region2): {};
       let param2 = {