瀏覽代碼

fix: 相机生成区分国际服

jinx 7 月之前
父節點
當前提交
4f272e49f3
共有 1 個文件被更改,包括 6 次插入19 次删除
  1. 6 19
      packages/qjkankan-editor/src/views/material/works/index.vue

+ 6 - 19
packages/qjkankan-editor/src/views/material/works/index.vue

@@ -6,25 +6,17 @@
           {{ online_gen }}
           {{ work1TotalNum ? `(${work1TotalNum})` : "" }}
         </span>
-        <span @click="changeTab('cam')" :class="{ active: isActive('cam') }">
+        <span v-if="VUE_APP_ORIGIN != 'aws'" @click="changeTab('cam')" :class="{ active: isActive('cam') }">
           {{ cam_gen }}
           {{ work2TotalNum ? `(${work2TotalNum})` : "" }}
         </span>
       </div>
       <div class="tab-r">
         <div class="filter">
-          <div
-            :class="{ active: isFilterFocus }"
-            @focusin="onFilterFocus"
-            @focusout="onFilterBlur"
-          >
+          <div :class="{ active: isFilterFocus }" @focusin="onFilterFocus" @focusout="onFilterBlur">
             <i class="iconfont iconworks_search search"></i>
             <input type="text" :placeholder="search" v-model="searchKey" />
-            <i
-              v-if="searchKey"
-              @click="searchKey = ''"
-              class="iconfont icon-toast_red del"
-            ></i>
+            <i v-if="searchKey" @click="searchKey = ''" class="iconfont icon-toast_red del"></i>
           </div>
         </div>
       </div>
@@ -34,10 +26,7 @@
       <list @updateNum="handleWorkNum($event, 1)" :searchKey="searchKey"></list>
     </template>
     <template v-if="isActive('cam')">
-      <CamList
-        @updateNum="handleWorkNum($event, 2)"
-        :searchKey="searchKey"
-      ></CamList>
+      <CamList @updateNum="handleWorkNum($event, 2)" :searchKey="searchKey"></CamList>
     </template>
   </div>
 </template>
@@ -51,7 +40,6 @@ import CamList from "./cam";
 import browser from "@/utils/browser";
 
 const allTabType = ["list", "cam"];
-
 export default {
   components: {
     List,
@@ -76,6 +64,7 @@ export default {
       currentTab: "list",
       online_gen: i18n.t("material.works.online_gen"),
       cam_gen: i18n.t("material.works.cam_gen"),
+      VUE_APP_ORIGIN: process.env.VUE_APP_ORIGIN || '',
     };
   },
 
@@ -94,9 +83,7 @@ export default {
     changeTab(type) {
       if (allTabType.includes(type)) {
         this.currentTab = type;
-        location.replace(
-          `./material.html?lang=${this.$lang}&from=${type}#/works`
-        );
+        location.replace(`./material.html?lang=${this.$lang}&from=${type}#/works`);
       }
     },
     handleWorkNum(val, type) {