11wqe1 3 kuukautta sitten
vanhempi
commit
11b06517eb
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      src/views/kanBan/index.vue

+ 5 - 3
src/views/kanBan/index.vue

@@ -7,7 +7,7 @@
               <span style="color: #0663FE;font-weight: 600;">{{ userinfo.schoolName }}</span>
               <span style="color: #0663FE;font-weight: 600;">{{ userinfo.schoolName }}</span>
             </div>
             </div>
             <div class="person">
             <div class="person">
-                <el-button v-if="isIndex2 != ''" type="text" @click="gotoli" style="margin-right: 20px">返回校区</el-button>
+                <el-button v-if="isIndex2 == 2" type="text" @click="gotoli" style="margin-right: 20px">返回校区</el-button>
               <div class="person_name">
               <div class="person_name">
                 <img
                 <img
                  @click="openData()"
                  @click="openData()"
@@ -142,9 +142,11 @@ export default {
     },
     },
     mounted() {
     mounted() {
         const index = this.$route.query.index; // 123
         const index = this.$route.query.index; // 123
-
+        console.log(index);
+        
         if (index == 2) {
         if (index == 2) {
-            this.isActive = index
+            this.isActive = 2
+            this.isIndex2 = 2
         }else if (index == 1) {
         }else if (index == 1) {
             this.isIndex2 = index
             this.isIndex2 = index
         }
         }