浏览代码

测试刷新token

duy 2 年之前
父节点
当前提交
ddc536f16c
共有 1 个文件被更改,包括 5 次插入1 次删除
  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: "/"});