29 lines
656 B
JavaScript
29 lines
656 B
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import { router, RouterMount } from './router'
|
|
import store from './store'
|
|
import noList from './components/no-list-components/index.vue'
|
|
|
|
Vue.use(router)
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.$store = store
|
|
App.mpType = 'app'
|
|
import uView from "uview-ui";
|
|
Vue.use(uView);
|
|
|
|
const app = new Vue({
|
|
...App
|
|
|
|
|
|
})
|
|
Vue.component('no-list',noList)
|
|
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
|
|
// #ifdef H5
|
|
RouterMount(app,router,'#app')
|
|
// #endif
|
|
|
|
// #ifndef H5
|
|
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
|
|
// #endif
|