Authored by TaoHuang

fix login

... ... @@ -18,7 +18,7 @@ export default {
this.$emit('click', {uid: user.uid});
} else {
this.$emit('cancel');
this.$yoho.goLogin();
this.$sdk.goLogin();
}
}
},
... ...
... ... @@ -13,6 +13,7 @@ import {forEach, fill} from 'lodash';
import {createNamespacedHelpers} from 'vuex';
const {mapActions} = createNamespacedHelpers('user');
const {mapActions: articleMapActions} = createNamespacedHelpers('article');
import cookie from 'yoho-cookie';
const classMap = {
fav: {
... ...
... ... @@ -6,6 +6,8 @@ import {createApp} from './app';
import {createApi} from 'create-api';
import {Style, Toast, Dialog, ActionSheet} from 'cube-ui'; //eslint-disable-line
import Prompt from 'plugins/grass-prompt';
import bus from 'plugins/bus';
import {get} from 'lodash';
import Lazy from 'vue-lazyload';
import yoho from 'common/yoho';
... ... @@ -38,6 +40,8 @@ Vue.prop('auth', function() {
return true;
});
Vue.prop('bus', bus());
Vue.use(Prompt);
Vue.use(Toast);
Vue.use(Dialog);
... ... @@ -45,7 +49,6 @@ Vue.use(ActionSheet);
Vue.prop('api', createApi(context, store));
Vue.use(Lazy, {error: ''});
InitClient(store);
const trackPage = (path) => {
... ...
import Vue from 'vue';
export default () => {
return new Vue();
};
... ...