v3.7.2 版本代码合并

This commit is contained in:
JEECG
2024-12-09 15:10:46 +08:00
parent 64b29f47e0
commit b0c4194602
118 changed files with 12729 additions and 1596 deletions

View File

@ -1,9 +1,19 @@
import type { App } from 'vue';
import type { Pinia } from 'pinia';
import { createPinia } from 'pinia';
const store = createPinia();
let store: Nullable<Pinia> = null;
export function setupStore(app: App<Element>) {
if (store == null) {
store = createPinia();
}
app.use(store);
}
// 销毁store
export function destroyStore() {
store = null;
}
export { store };