|
@@ -2,12 +2,15 @@ import Vue from 'vue';
|
|
|
import App from './App';
|
|
|
import uView from 'uview-ui';
|
|
|
import { router, RouterMount } from '@/router'; //路径换成自己的
|
|
|
+import store from '@/store';
|
|
|
import cache from '@/mixin/cache';
|
|
|
+import empty from '@/components/empty';
|
|
|
App.mpType = 'app';
|
|
|
|
|
|
Vue.use(router);
|
|
|
Vue.use(uView);
|
|
|
Vue.mixin(cache);
|
|
|
+Vue.component('empty', empty);
|
|
|
Vue.config.productionTip = false;
|
|
|
App.mpType = 'app';
|
|
|
|
|
@@ -33,6 +36,7 @@ uni.addInterceptor({
|
|
|
});
|
|
|
|
|
|
const app = new Vue({
|
|
|
+ store,
|
|
|
...App,
|
|
|
});
|
|
|
// #ifdef H5
|