CzRger 5 maanden geleden
bovenliggende
commit
e5f80448d0
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 2
      src/views/web/archive/index-worker.vue
  2. 0 1
      vite.config.ts

+ 3 - 2
src/views/web/archive/index-worker.vue

@@ -45,7 +45,7 @@
         <el-tabs v-model="state.activeTab" class="archive-list-tabs">
           <el-tab-pane label="首页" name="首页"/>
           <template v-for="([key, value], index) in themeConfigCpt.tabs">
-            <el-tab-pane :label="value.indexName" :name="key"/>
+            <el-tab-pane :label="value.indexNameShort || value.indexName" :name="key"/>
           </template>
         </el-tabs>
         <template v-if="state.activeTab === '首页'">
@@ -87,7 +87,7 @@
           <div class="archive-list-block">
             <div class="archive-list-block-title">
               <SvgIcon class="flag" name="flag_1" color="var(--cus-main-color)"/>
-              {{ themeConfigCpt.tabs.get(state.activeTab)?.indexName }}
+              {{ themeConfigCpt.tabs.get(state.activeTab)?.indexNameShort || themeConfigCpt.tabs.get(state.activeTab)?.indexName }}
             </div>
             <div class="archive-list-block-page" v-loading="state.tabTable.loading">
               <CusTable
@@ -265,6 +265,7 @@ const themeConfigCpt = computed(() => {
       res.tabs.set(v.id, {
         __type: v.type,
         indexName: v.indexName,
+        indexNameShort: v.indexNameShort,
         indexTableName: v.indexTableName,
         indexId: v.indexId,
         searchParam: getSearchParam(v),

+ 0 - 1
vite.config.ts

@@ -65,7 +65,6 @@ export default defineConfig({
         changeOrigin: true,
         rewrite: (path) => {
           return path.replace(/^\/ssw-api\/api/, '')
-          // console.log(path)
           // return path
         }
       },