第二阶段代码
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user