优化
This commit is contained in:
@@ -5,6 +5,7 @@ import router from '@/router'
|
||||
import { getUserInfo,clearUserInfoCache } from './userinfo'
|
||||
|
||||
const SERVER_BASE = API_BASE.APP_MEMBER
|
||||
const TIK_BASE = API_BASE.APP_TIK
|
||||
|
||||
/**
|
||||
* 保存token
|
||||
@@ -195,6 +196,15 @@ export function getUserInfoAuth() {
|
||||
return getUserInfo()
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户档案(积分、存储配额等)
|
||||
* @returns {Promise<Object>} 用户档案
|
||||
*/
|
||||
export async function getUserProfile() {
|
||||
const { data } = await api.get(`${TIK_BASE}/muye/member-profile/get`)
|
||||
return data
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机+验证码+密码注册流程
|
||||
* @param {string} mobile - 手机号
|
||||
@@ -223,4 +233,5 @@ export default {
|
||||
resetPasswordBySms,
|
||||
registerWithMobileCodePassword,
|
||||
getUserInfo: getUserInfoAuth,
|
||||
getUserProfile,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user