lanan-repair/main.js

26 lines
492 B
JavaScript
Raw Normal View History

2024-09-22 15:07:01 +08:00
import App from './App'
2024-09-26 18:44:42 +08:00
import uView from "uview-ui";
import config from '@/config'
const baseUrl = config.baseUrl
Vue.prototype.$baseUrl = baseUrl;
Vue.use(uView);
2024-09-22 15:07:01 +08:00
// #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'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif