gree_leran/main.js

30 lines
523 B
JavaScript
Raw Normal View History

2024-06-14 01:11:29 +00:00
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
2024-06-16 01:04:56 +00:00
import msg from "./utils/msg.js"
2024-06-14 01:11:29 +00:00
Vue.config.productionTip = false
App.mpType = 'app'
2024-06-16 01:04:56 +00:00
Vue.prototype.$msg = msg
2024-06-14 01:11:29 +00:00
import uviewPlus from 'uview-plus'
2024-06-16 01:04:56 +00:00
2024-06-14 01:11:29 +00:00
const app = new Vue({
...App
})
app.use(uviewPlus)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
2024-06-20 15:36:19 +00:00
import uviewPlus from 'uview-plus'
2024-06-14 01:11:29 +00:00
export function createApp() {
const app = createSSRApp(App)
2024-06-20 15:36:19 +00:00
app.use(uviewPlus);
2024-06-14 01:11:29 +00:00
return {
app
}
}
// #endif