|
@@ -6,6 +6,8 @@ import {createApp} from './app'; |
|
@@ -6,6 +6,8 @@ import {createApp} from './app'; |
6
|
import {createApi} from 'create-api';
|
6
|
import {createApi} from 'create-api';
|
7
|
import {Style, Toast, Dialog, ActionSheet} from 'cube-ui'; //eslint-disable-line
|
7
|
import {Style, Toast, Dialog, ActionSheet} from 'cube-ui'; //eslint-disable-line
|
8
|
import Prompt from 'plugins/grass-prompt';
|
8
|
import Prompt from 'plugins/grass-prompt';
|
|
|
9
|
+import bus from 'plugins/bus';
|
|
|
10
|
+
|
9
|
import {get} from 'lodash';
|
11
|
import {get} from 'lodash';
|
10
|
import Lazy from 'vue-lazyload';
|
12
|
import Lazy from 'vue-lazyload';
|
11
|
import yoho from 'common/yoho';
|
13
|
import yoho from 'common/yoho';
|
|
@@ -38,6 +40,8 @@ Vue.prop('auth', function() { |
|
@@ -38,6 +40,8 @@ Vue.prop('auth', function() { |
38
|
|
40
|
|
39
|
return true;
|
41
|
return true;
|
40
|
});
|
42
|
});
|
|
|
43
|
+
|
|
|
44
|
+Vue.prop('bus', bus());
|
41
|
Vue.use(Prompt);
|
45
|
Vue.use(Prompt);
|
42
|
Vue.use(Toast);
|
46
|
Vue.use(Toast);
|
43
|
Vue.use(Dialog);
|
47
|
Vue.use(Dialog);
|
|
@@ -45,7 +49,6 @@ Vue.use(ActionSheet); |
|
@@ -45,7 +49,6 @@ Vue.use(ActionSheet); |
45
|
Vue.prop('api', createApi(context, store));
|
49
|
Vue.prop('api', createApi(context, store));
|
46
|
Vue.use(Lazy, {error: ''});
|
50
|
Vue.use(Lazy, {error: ''});
|
47
|
|
51
|
|
48
|
-
|
|
|
49
|
InitClient(store);
|
52
|
InitClient(store);
|
50
|
|
53
|
|
51
|
const trackPage = (path) => {
|
54
|
const trackPage = (path) => {
|