This commit is contained in:
2026-02-23 02:05:48 +08:00
parent c8598d3dea
commit 5b3047f675
8 changed files with 178 additions and 159 deletions

View File

@@ -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,
}