star7th 6 年之前
父節點
當前提交
af2772d1b6
共有 2 個文件被更改,包括 9 次插入6 次删除
  1. 4 2
      web_src/src/components/Index.vue
  2. 5 4
      web_src/src/components/item/Index.vue

+ 4 - 2
web_src/src/components/Index.vue

@@ -5,7 +5,7 @@
       <div class="row header  ">
         <div class="right pull-right">
           <ul class="inline pull-right">
-          <li ><router-link :to="link">{{link_text}}</router-link> &nbsp;&nbsp;&nbsp;<a target="_blank"  href="https://www.showdoc.cc/app">App</a></li>
+          <li ><router-link :to="link">{{link_text}}</router-link> &nbsp;&nbsp;&nbsp;<a target="_blank" v-if="lang =='zh-cn'" href="https://www.showdoc.cc/app">App</a></li>
                 </ul>
           </div>  
         </div>
@@ -91,7 +91,8 @@ export default {
     return {
       height: '',
       link:'',
-      link_text:''
+      link_text:'',
+      lang:""
     }
   },
   methods:{
@@ -130,6 +131,7 @@ export default {
   },
   mounted () {
     var that = this ;
+    this.lang = DocConfig.lang ;
     this.getHeight();
     this.homePageSetting();
     that.link = '/user/login';

+ 5 - 4
web_src/src/components/item/Index.vue

@@ -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(){