Authored by yyq

auth

... ... @@ -7,6 +7,7 @@ import {createApi} from 'create-api';
import {Style, Toast, Dialog, DatePicker, ImagePreview} from 'cube-ui'; //eslint-disable-line
import {get} from 'lodash';
import Lazy from 'vue-lazyload';
import cookie from 'yoho-cookie';
import yoho from 'common/yoho';
import OrderPayType from 'components/order-pay-type';
import Bind from 'components/bind';
... ... @@ -47,6 +48,7 @@ yoho.auth = async(loginUrl) => {
if (user && user.uid) {
return user;
} else {
cookie.set('third_backurl', location.href);
location.href = loginUrl || `${location.origin}/xianyu/passport/login/taobao`;
return;
}
... ...