Ver código fonte

refactor(tabbar): 重构tabbar模块结构,优化代码组织

将tabbar相关代码从多个文件整合到统一目录结构
重命名tabbar相关文件以保持一致性
更新导入路径以匹配新的文件结构
添加README文档说明tabbar的不同实现策略
feige996 9 meses atrás
pai
commit
e3495bae69

+ 1 - 1
src/router/interceptor.ts

@@ -5,7 +5,7 @@
  * 我这里应为大部分都可以随便进入,所以使用黑名单
  */
 import { useUserStore } from '@/store'
-import { tabbarStore } from '@/tabbar/tabbar'
+import { tabbarStore } from '@/tabbar/store'
 import { needLoginPages as _needLoginPages, getLastPage, getNeedLoginPages } from '@/utils'
 
 // TODO Check

src/tabbar/tabbar.md → src/tabbar/README.md


src/tabbar/tabbarList.ts → src/tabbar/config.ts


+ 2 - 2
src/tabbar/fg-tabbar.vue

@@ -1,7 +1,7 @@
 <script setup lang="ts">
-import { tabbarStore } from './tabbar'
 // 'i-carbon-code',
-import { tabbarList as _tabBarList, cacheTabbarEnable, selectedTabbarStrategy, TABBAR_MAP } from './tabbarList'
+import { tabbarList as _tabBarList, cacheTabbarEnable, selectedTabbarStrategy, TABBAR_MAP } from './config'
+import { tabbarStore } from './store'
 
 const customTabbarEnable
 = selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE

src/tabbar/tabbar.ts → src/tabbar/store.ts