feat: 完成对接
This commit is contained in:
+10
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user