30 lines
523 B
JavaScript
30 lines
523 B
JavaScript
import App from './App'
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import './uni.promisify.adaptor'
|
|
import msg from "./utils/msg.js"
|
|
Vue.config.productionTip = false
|
|
App.mpType = 'app'
|
|
Vue.prototype.$msg = msg
|
|
import uviewPlus from 'uview-plus'
|
|
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.use(uviewPlus)
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import { createSSRApp } from 'vue'
|
|
import uviewPlus from 'uview-plus'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(uviewPlus);
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|