YNEduApp/main.js

27 lines
467 B
JavaScript
Raw Normal View History

2024-08-05 09:23:52 +08:00
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
2024-08-05 11:08:50 +08:00
import $api from './apis/api'
2024-08-05 17:09:04 +08:00
import uView from './uni_modules/uview-ui'
Vue.use(uView)
2024-08-05 09:23:52 +08:00
Vue.config.productionTip = false
2024-08-05 11:08:50 +08:00
Vue.prototype.$api = $api
2024-08-05 09:23:52 +08:00
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
}
}
2024-08-05 11:08:50 +08:00
// #endif