优化请求配置

This commit is contained in:
gyq
2026-01-29 17:41:38 +08:00
parent 5586573ff1
commit 696a39da99
9 changed files with 1955 additions and 347 deletions

19
main.js
View File

@@ -1,4 +1,7 @@
import App from './App'
import vConsloe from 'vconsole'
new vConsloe()
// #ifndef VUE3
import Vue from 'vue'
@@ -8,17 +11,19 @@ import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
...App
})
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
const app = createSSRApp(App)
return {
app
}
}
// #endif