35 lines
733 B
JavaScript
35 lines
733 B
JavaScript
import App from './App'
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import { router, RouterMount } from './router'
|
|
import store from './store'
|
|
import uView from 'uview-ui'
|
|
import noList from './components/no-list-components/index.vue'
|
|
Vue.use(router)
|
|
Vue.use(uView);
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.$store = store
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
Vue.component('no-list',noList)
|
|
// #ifdef H5
|
|
RouterMount(app,router,'#app')
|
|
// #endif
|
|
|
|
// #ifndef H5
|
|
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
|
|
// #endif
|
|
// #endif
|
|
// #ifdef VUE3
|
|
import { createSSRApp } from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|