29 lines
560 B
JavaScript
29 lines
560 B
JavaScript
import App from './App'
|
||
import './framework/bootstrap'
|
||
import store from './store'
|
||
// #ifndef VUE3
|
||
import Vue from 'vue'
|
||
import './uni.promisify.adaptor'
|
||
Vue.config.productionTip = false
|
||
// main.js,注意要在use方法之后执行
|
||
import uView from 'uview-ui'
|
||
Vue.prototype.$store = store
|
||
Vue.use(uView)
|
||
// 如此配置即可
|
||
App.mpType = 'app'
|
||
const app = new Vue({
|
||
store,
|
||
...App
|
||
})
|
||
app.$mount()
|
||
// #endif
|
||
|
||
// #ifdef VUE3
|
||
import { createSSRApp } from 'vue'
|
||
export function createApp() {
|
||
const app = createSSRApp(App)
|
||
return {
|
||
app
|
||
}
|
||
}
|
||
// #endif
|