增加公共请求方法配置

This commit is contained in:
2025-01-06 13:44:57 +08:00
parent f7364c7998
commit e0a55b8efe
9 changed files with 370 additions and 8 deletions

17
main.js
View File

@@ -1,23 +1,26 @@
import App from './App'
import uviewPlus from 'uview-plus'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
app.use(uviewPlus)
return {
app
}
const app = createSSRApp(App)
app.use(uviewPlus)
return {
app
}
}
// #endif