mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
登录、菜单等功能,加入fastmock数据
This commit is contained in:
@@ -27,6 +27,11 @@ export const useTabsViewStore = defineStore('tabsView', () => {
|
||||
*/
|
||||
const cachedTabs = ref([])
|
||||
|
||||
const clearAllTabs = () => {
|
||||
historyTabs.value = []
|
||||
cachedTabs.value = []
|
||||
}
|
||||
|
||||
const clearHistoryTabs = () => {
|
||||
if (historyTabs.value.length) {
|
||||
let idx = historyTabs.value.findIndex(v => currentTab.value && v.path === currentTab.value)
|
||||
@@ -163,6 +168,7 @@ export const useTabsViewStore = defineStore('tabsView', () => {
|
||||
removeHistoryTab,
|
||||
removeOtherHistoryTabs,
|
||||
removeHistoryTabs,
|
||||
clearAllTabs,
|
||||
clearHistoryTabs,
|
||||
findHistoryTab,
|
||||
addHistoryTab,
|
||||
|
||||
Reference in New Issue
Block a user