Bläddra i källkod

修改点击切换问题

zengyicheng 2 år sedan
förälder
incheckning
ca79180298
1 ändrade filer med 4 tillägg och 3 borttagningar
  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",
           ];
           for (var i = 0; i < this.raceInfo.type.length; i++) {
-            if ((t = 1)) {
+            if ((t == 1)) {
               if (this.raceInfo.type[i] != "") {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
+                  console.log(this.raceInfo.type[i])
                 } else {
                   t = 2;
                 }
@@ -337,7 +338,7 @@ export default {
             "2ad17d24-d030-11ec-8c78-005056b86db5",
           ];
           for (var i = 0; i < this.raceInfo.type.length; i++) {
-            if ((t = 1)) {
+            if ((t == 1)) {
               if (this.raceInfo.type[i] != "") {
                 if (a.indexOf(this.raceInfo.type[i]) == -1) {
                 } else {
@@ -414,7 +415,7 @@ export default {
           "2ad17d24-d030-11ec-8c78-005056b86db5",
         ];
         for (var i = 0; i < this.raceInfo.type.length; i++) {
-          if ((t = 1)) {
+          if ((t == 1)) {
             if (this.raceInfo.type[i] != "") {
               if (a.indexOf(this.raceInfo.type[i]) == -1) {
               } else {