瀏覽代碼

修改点击切换问题

zengyicheng 2 年之前
父節點
當前提交
ca79180298
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/components/pages/race/addRace.vue

+ 4 - 3
src/components/pages/race/addRace.vue

@@ -281,9 +281,10 @@ export default {
             "2ad17d24-d030-11ec-8c78-005056b86db5",
             "2ad17d24-d030-11ec-8c78-005056b86db5",
           ];
           ];
           for (var i = 0; i < this.raceInfo.type.length; i++) {
           for (var i = 0; i < this.raceInfo.type.length; i++) {
-            if ((t = 1)) {
+            if ((t == 1)) {
               if (this.raceInfo.type[i] != "") {
               if (this.raceInfo.type[i] != "") {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
+                  console.log(this.raceInfo.type[i])
                 } else {
                 } else {
                   t = 2;
                   t = 2;
                 }
                 }
@@ -337,7 +338,7 @@ export default {
             "2ad17d24-d030-11ec-8c78-005056b86db5",
             "2ad17d24-d030-11ec-8c78-005056b86db5",
           ];
           ];
           for (var i = 0; i < this.raceInfo.type.length; i++) {
           for (var i = 0; i < this.raceInfo.type.length; i++) {
-            if ((t = 1)) {
+            if ((t == 1)) {
               if (this.raceInfo.type[i] != "") {
               if (this.raceInfo.type[i] != "") {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
                 } else {
                 } else {
@@ -414,7 +415,7 @@ export default {
           "2ad17d24-d030-11ec-8c78-005056b86db5",
           "2ad17d24-d030-11ec-8c78-005056b86db5",
         ];
         ];
         for (var i = 0; i < this.raceInfo.type.length; i++) {
         for (var i = 0; i < this.raceInfo.type.length; i++) {
-          if ((t = 1)) {
+          if ((t == 1)) {
             if (this.raceInfo.type[i] != "") {
             if (this.raceInfo.type[i] != "") {
               if (a.indexOf(this.raceInfo.type[i]) == -1) {
               if (a.indexOf(this.raceInfo.type[i]) == -1) {
               } else {
               } else {