feat: 完成对接

This commit is contained in:
anonymous
2024-12-31 21:07:08 +08:00
parent ecd30a2e82
commit fecf6535a8
99 changed files with 2253 additions and 299 deletions
+10 -1
View File
@@ -2,7 +2,12 @@ import { createSSRApp } from 'vue'
import App from './App.vue'
import store from './store'
import i18n from './locale/index'
import { routeInterceptor, requestInterceptor, prototypeInterceptor } from './interceptors'
import {
routeInterceptor,
routerBeforeEachConfig,
requestInterceptor,
prototypeInterceptor,
} from './interceptors'
import 'virtual:uno.css'
import '@/style/index.scss'
@@ -13,6 +18,10 @@ export function createApp() {
app.use(routeInterceptor)
app.use(requestInterceptor)
app.use(prototypeInterceptor)
setTimeout(() => {
routerBeforeEachConfig((app as any).router)
}, 0)
return {
app,
}