🚀 修复构建问题.

This commit is contained in:
lijiahang
2024-03-18 14:58:43 +08:00
parent 127f4df302
commit 2451f4af82
9 changed files with 15 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ export default defineStore('tabBar', {
addTab(tag: TagProps, ignoreCache: boolean) {
this.tagList.push(tag);
if (!ignoreCache) {
this.cacheTabList.add(tag.name as string);
this.cacheTabList.add(tag.name);
}
},
@@ -49,8 +49,8 @@ export default defineStore('tabBar', {
this.cacheTabList.clear();
// 要先判断 ignoreCache
this.tagList.filter((el) => !el.ignoreCache)
.map((el) => el.name)
.forEach((x) => this.cacheTabList.add(x));
.map((el) => el.name)
.forEach((x) => this.cacheTabList.add(x));
},
// 重设 tab