oil-station/gasStation-uni/main.js

31 lines
554 B
JavaScript
Raw Normal View History

2023-11-27 09:24:16 +08:00
import App from './App'
import uView from '@/uni_modules/uview-ui'
2023-11-27 10:42:24 +08:00
import config from '@/config'
2023-11-27 09:24:16 +08:00
Vue.use(uView)
2023-11-27 10:42:24 +08:00
import share from './utils/share.js'
Vue.mixin(share)
const baseUrl = config.baseUrl
Vue.prototype.$baseUrl = baseUrl;
2023-11-27 09:24:16 +08:00
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
2023-11-27 10:42:24 +08:00
...App
2023-11-27 09:24:16 +08:00
})
app.$mount()
// #endif
// #ifdef VUE3
2023-11-27 10:42:24 +08:00
import {
createSSRApp
} from 'vue'
2023-11-27 09:24:16 +08:00
export function createApp() {
2023-11-27 10:42:24 +08:00
const app = createSSRApp(App)
return {
app
}
2023-11-27 09:24:16 +08:00
}
// #endif