chore: 容器框架升级,修复项目命令行异常问题
This commit is contained in:
20
apps/designer/src/main.ts
Normal file
20
apps/designer/src/main.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createApp } from 'vue';
|
||||
import { createPersistedState } from 'pinia-plugin-persistedstate';
|
||||
|
||||
import router from './router';
|
||||
import App from './App.vue';
|
||||
import './style/index.scss';
|
||||
import { pinia } from './store';
|
||||
|
||||
// 添加持久化插件
|
||||
pinia.use(
|
||||
createPersistedState({
|
||||
auto: true, // 自动持久化所有 store
|
||||
storage: localStorage
|
||||
})
|
||||
);
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(router);
|
||||
app.use(pinia);
|
||||
app.mount('#app');
|
||||
Reference in New Issue
Block a user