mirror of
https://gitee.com/yudaocode/yudao-mall-uniapp.git
synced 2025-12-30 09:42:25 +00:00
个人信息接口替换
This commit is contained in:
@@ -44,8 +44,8 @@ const user = defineStore({
|
||||
actions: {
|
||||
// 获取个人信息
|
||||
async getInfo() {
|
||||
const { error, data } = await userApi.profile();
|
||||
if (error !== 0) return;
|
||||
const { code, data } = await userApi.profile();
|
||||
if (code !== 0) return;
|
||||
this.userInfo = data;
|
||||
|
||||
return Promise.resolve(data);
|
||||
|
||||
Reference in New Issue
Block a user