chore: change how the package is built

This commit is contained in:
vince
2024-07-12 22:23:41 +08:00
parent 10b684832d
commit f98f504534
24 changed files with 811 additions and 730 deletions

View File

@@ -318,10 +318,13 @@ const useCoreTabbarStore = defineStore('core-tabbar', {
return [...affixTabs, ...normalTabs];
},
},
persist: {
// 持久化
paths: ['tabs'],
},
persist: [
// tabs不需要保存在localStorage
{
paths: ['tabs'],
storage: sessionStorage,
},
],
state: (): TabsState => ({
cachedTabs: new Set(),
excludeCachedTabs: new Set(),