diff --git a/apps/vue-demo/src/app.ts b/apps/vue-demo/src/app.ts
index 2a7b98d..41df168 100644
--- a/apps/vue-demo/src/app.ts
+++ b/apps/vue-demo/src/app.ts
@@ -2,10 +2,11 @@ import './style/global.less';
import RootView from './component/RootView.vue';
import { createApp } from 'vue';
import { createPinia } from 'pinia';
+import { globalPinia } from './store/global/theme.store';
export function createVueApp(container: HTMLElement, node?: HTMLElement) {
const app = createApp(RootView);
- app.use(createPinia()).mount(container);
+ app.use(globalPinia).use(createPinia()).mount(container);
return () => app.unmount();
}
diff --git a/apps/vue-demo/src/component/pinia/PiniaThemeSwitch.vue b/apps/vue-demo/src/component/pinia/PiniaThemeSwitch.vue
index 71d7f8f..e4b394a 100644
--- a/apps/vue-demo/src/component/pinia/PiniaThemeSwitch.vue
+++ b/apps/vue-demo/src/component/pinia/PiniaThemeSwitch.vue
@@ -1,12 +1,12 @@
-
+