调整前端两套互不连通的 HTTP 请求层并存、两套布局框架并存、两套 Pinia 实例并存问题

This commit is contained in:
guanj
2026-07-10 14:52:29 +08:00
parent 888b8d1bf4
commit b3d671a93e
76 changed files with 619 additions and 5514 deletions

View File

@@ -1,7 +1,15 @@
import type { App } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
/** 供 setup 外WithOut使用的同一 Pinia 实例 */
export const store = pinia
export const setupStore = (app: App<Element>) => {
app.use(pinia)
}
export default pinia