|
@@ -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: "/"});
|