fix: update name

This commit is contained in:
xiaoxian521
2021-11-26 22:54:29 +08:00
parent aca6a667f3
commit 8c31ca1bad
6 changed files with 38 additions and 37 deletions

View File

@@ -1,20 +0,0 @@
import { defineStore } from "pinia";
import { store } from "/@/store";
import { getConfig } from "/@/config";
export const useMultiTabsStore = defineStore({
id: "pure-multiTabs",
state: () => ({
multiTabsCache: getConfig().MultiTabsCache
}),
getters: {
getMultiTabsCache() {
return this.multiTabsCache;
}
},
actions: {}
});
export function useMultiTabsStoreHook() {
return useMultiTabsStore(store);
}

View File

@@ -0,0 +1,21 @@
import { defineStore } from "pinia";
import { store } from "/@/store";
import { getConfig } from "/@/config";
// import { multiTagsType } from "/@/layout/types";
export const useMultiTagsStore = defineStore({
id: "pure-multiTags",
state: () => ({
multiTagsCache: getConfig().MultiTagsCache
}),
getters: {
getMultiTagsCache() {
return this.multiTagsCache;
}
},
actions: {}
});
export function useMultiTagsStoreHook() {
return useMultiTagsStore(store);
}