登录、菜单等功能,加入fastmock数据

This commit is contained in:
gary.fu
2024-01-03 17:11:25 +08:00
parent 62393963e5
commit 75a5d784ac
26 changed files with 494 additions and 220 deletions

View File

@@ -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,