Forráskód Böngészése

测试刷新token

duy 2 éve
szülő
commit
ddc536f16c
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      src/page/index/top/index.vue

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

@@ -90,7 +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"
+          <!-- <el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
+                            >{{$t('navbar.switchDept')}}
+          </el-dropdown-item> -->
+          <el-dropdown-item  @click.native="switchDept"
                             >{{$t('navbar.switchDept')}}
           </el-dropdown-item>
           <el-dropdown-item @click.native="logout"
@@ -232,6 +235,7 @@
         this.userBox = true;
       },
       submitSwitch (form, done) {
+        console.log(form,'form');
         this.$store.dispatch("refreshToken", form).then(() => {
           this.userBox = false;
           this.$router.push({path: "/"});