mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
workflow: use pinia replace vuex and fix some bug
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -1,7 +1,7 @@
|
||||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
import { setupStore } from "/@/store";
|
||||
|
||||
import { useElementPlus } from "../src/plugins/element-plus";
|
||||
import { useTable } from "../src/plugins/vxe-table";
|
||||
@@ -50,7 +50,11 @@ export const getServerConfig = async (): Promise<any> => {
|
||||
};
|
||||
|
||||
getServerConfig().then(async () => {
|
||||
app.use(router);
|
||||
setupStore(app);
|
||||
|
||||
app.use(router).use(useElementPlus).use(useTable).use(usI18n);
|
||||
|
||||
await router.isReady();
|
||||
app.use(store).use(useElementPlus).use(useTable).use(usI18n).mount("#app");
|
||||
|
||||
app.mount("#app");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user