feat(tabs): 多页签增加关闭所有

This commit is contained in:
燕博文
2022-06-16 10:00:23 +08:00
parent 65c21812bb
commit 8237adb9c0
3 changed files with 17 additions and 1 deletions

View File

@ -155,6 +155,10 @@ export const useTabStore = defineStore('tab-store', {
this.clearTab(excludes);
}
},
/** 清除所有多页签 */
clearAllTab() {
this.clearTab();
},
/**
* 点击单个tab
* @param fullPath - 路由fullPath