第二阶段代码

This commit is contained in:
2026-04-23 11:37:37 +08:00
parent 618bb6699e
commit ef64c3b7fb
937 changed files with 118372 additions and 10248 deletions

View File

@@ -461,7 +461,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
*/
async unpinTab(tab: TabDefinition) {
const index = this.tabs.findIndex((item) => equalTab(item, tab));
if (index === -1) {
if (index === -1 || tab.meta.affixTab) {
return;
}
const oldTab = this.tabs[index];
@@ -537,8 +537,8 @@ export const useTabbarStore = defineStore('core-tabbar', {
excludeCachedTabs: new Set(),
menuList: [
'close',
'affix',
'maximize',
// 'affix',
// 'maximize',
'reload',
'open-in-new-window',
'close-left',