初始化 uniapp 小程序

This commit is contained in:
YunaiV
2021-11-24 23:33:06 +08:00
parent e2b76ee0e5
commit 6c4908e70e
85 changed files with 12478 additions and 0 deletions

21
yudao-vue-ui/main.js Normal file
View File

@ -0,0 +1,21 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
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
}
}
// #endif