|
@@ -1,6 +1,5 @@
|
|
|
import { createApp } from "vue";
|
|
import { createApp } from "vue";
|
|
|
|
|
|
|
|
-// 引入状态管理
|
|
|
|
|
import { setupStore } from "@/stores";
|
|
import { setupStore } from "@/stores";
|
|
|
|
|
|
|
|
import "./assets/style/main.css";
|
|
import "./assets/style/main.css";
|
|
@@ -9,12 +8,16 @@ import "element-plus/dist/index.css";
|
|
|
import ElementPlus from "element-plus";
|
|
import ElementPlus from "element-plus";
|
|
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
|
|
|
|
|
|
|
|
+import { setupAuth, setupMountedFocus } from "@/directives";
|
|
|
|
|
+
|
|
|
import App from "./App.vue";
|
|
import App from "./App.vue";
|
|
|
import router from "./router";
|
|
import router from "./router";
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
setupStore(app);
|
|
setupStore(app);
|
|
|
|
|
+setupAuth(app);
|
|
|
|
|
+setupMountedFocus(app);
|
|
|
|
|
|
|
|
app.use(ElementPlus, {
|
|
app.use(ElementPlus, {
|
|
|
locale: zhCn,
|
|
locale: zhCn,
|