duy hace 2 años
padre
commit
034061c7cb
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      src/page/index/top/index.vue

+ 2 - 5
src/page/index/top/index.vue

@@ -90,12 +90,10 @@
           <el-dropdown-item>
             <router-link to="/info/index">{{$t('navbar.userinfo')}}</router-link>
           </el-dropdown-item>
-          <!-- <el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
-                            >{{$t('navbar.switchDept')}}
-          </el-dropdown-item> -->
-          <el-dropdown-item  @click.native="switchDept"
+          <el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
                             >{{$t('navbar.switchDept')}}
           </el-dropdown-item>
+      
           <el-dropdown-item @click.native="logout"
                             divided>{{$t('navbar.logOut')}}
           </el-dropdown-item>
@@ -235,7 +233,6 @@
         this.userBox = true;
       },
       submitSwitch (form, done) {
-        console.log(form,'form');
         this.$store.dispatch("refreshToken", form).then(() => {
           this.userBox = false;
           this.$router.push({path: "/"});