This commit is contained in:
”chenxuelian“
2022-12-02 21:39:08 +08:00
commit b549b0a96a
14 changed files with 653 additions and 0 deletions

25
main.js Normal file
View File

@@ -0,0 +1,25 @@
import App from './App'
//引入uView-ui组件库注意这两行要放在 import Vue 之后)
import uView from 'uview-ui'
Vue.use(uView)
// #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