import App from './App' import { setupAuthInterceptors } from './utils/auth' // 应用启动时注册统一路由鉴权拦截器(内部有幂等保护)。 setupAuthInterceptors() // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' import uviewPlus from 'uview-plus' /** * uni-app Vue3 入口。 */ export function createApp() { const app = createSSRApp(App) app.use(uviewPlus) return { app } } // #endif