recycapp/main.js
2025-10-22 20:28:50 +08:00

27 lines
451 B
JavaScript

import App from './App.vue'
import * as Api from './config/api.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from 'uview-ui'
Vue.config.productionTip = false
Vue.prototype.$api = Api;
Vue.use(uView)
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif