This commit is contained in:
lcj
2026-07-14 11:56:33 +08:00
parent 54750f6e3c
commit e4c29a08b4
167 changed files with 29581 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from './uview-ui'
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
import httpInterceptor from '@/common/http.interceptor.js'
// 这里需要写在最后,是为了等Vue创建对象完成,引入"app"对象(也即页面的"this"实例)
Vue.use(httpInterceptor, app)
import httpApi from '@/common/http.api.js';
Vue.use(httpApi, app)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif