mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
fix: update name
This commit is contained in:
@@ -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);
|
||||
}
|
||||
21
src/store/modules/multiTags.ts
Normal file
21
src/store/modules/multiTags.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user