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