|
|
@@ -20,8 +20,8 @@
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item><router-link to="/user/setting">{{$t("personal_setting")}}</router-link></el-dropdown-item>
|
|
|
- <el-dropdown-item><a target="_blank" href="https://www.showdoc.cc/app">Apps</a></el-dropdown-item>
|
|
|
- <el-dropdown-item><a target="_blank" href="http://runapi.showdoc.cc/">RunApi</a></el-dropdown-item>
|
|
|
+ <el-dropdown-item><a target="_blank" v-if="lang =='zh-cn'" href="https://www.showdoc.cc/app">Apps</a></el-dropdown-item>
|
|
|
+ <el-dropdown-item><a target="_blank" v-if="lang =='zh-cn'" href="http://runapi.showdoc.cc/">RunApi</a></el-dropdown-item>
|
|
|
<el-dropdown-item :command="logout">{{$t("logout")}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
@@ -191,7 +191,8 @@ export default {
|
|
|
currentDate: new Date(),
|
|
|
itemList:{},
|
|
|
isAdmin:false,
|
|
|
- keyword:''
|
|
|
+ keyword:'',
|
|
|
+ lang:''
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
|
@@ -371,7 +372,7 @@ export default {
|
|
|
this.get_item_list();
|
|
|
this.user_info();
|
|
|
this.dragging();
|
|
|
-
|
|
|
+ this.lang = DocConfig.lang ;
|
|
|
|
|
|
},
|
|
|
beforeDestroy(){
|