feat: 接口对接完成
This commit is contained in:
+4
-9
@@ -1,27 +1,22 @@
|
||||
import { createSSRApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import store from './store'
|
||||
import i18n from './locale/index'
|
||||
import {
|
||||
routeInterceptor,
|
||||
routerBeforeEachConfig,
|
||||
requestInterceptor,
|
||||
prototypeInterceptor,
|
||||
} from './interceptors'
|
||||
import { requestInterceptor, prototypeInterceptor, routerBeforeEachConfig } from './interceptors'
|
||||
import 'virtual:uno.css'
|
||||
import '@/style/index.scss'
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
|
||||
app.use(store)
|
||||
app.use(i18n)
|
||||
app.use(routeInterceptor)
|
||||
// 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