|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import store from '@/store/index' |
|
|
|
import { uploadUrl, XAPPID } from '@/enums/index.js' |
|
|
|
|
|
|
|
import { pushCustomerOff } from '@/apis/commonApi' |
|
|
|
// 框架方法封装
|
|
|
|
const tabList = ['client', 'trade', 'mall', 'mine'] |
|
|
|
|
|
|
|
@ -89,6 +89,11 @@ export function loginGo2(url, data = {}, isRedirect) { |
|
|
|
*/ |
|
|
|
export function exit(redirect = false) { |
|
|
|
store.dispatch('logout') |
|
|
|
// #ifdef APP-PLUS
|
|
|
|
let cid = plus.push.getClientInfo().clientid |
|
|
|
let platform = uni.getSystemInfoSync().platform |
|
|
|
pushCustomerOff(cid, platform) |
|
|
|
// #endif
|
|
|
|
go2('login', {}, redirect) |
|
|
|
} |
|
|
|
|
|
|
|
|