优化图片和token问题

This commit is contained in:
davy 2025-07-23 17:12:45 +08:00
parent cb550b6be0
commit d260e09a00
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
import request from '@/utils/request';
/**
* 获取当前登录用户信息
* 获取当前登录用户信息 - 门店专用接口
*/
export async function getUserProfile() {
const res = await request.get('/system/user/profile');
const res = await request.get('/barmgr/user/profile');
if (res.data.code === 200) {
return res.data;
}
@ -12,10 +12,10 @@ export async function getUserProfile() {
}
/**
* 修改当前登录用户信息
* 修改当前登录用户信息 - 门店专用接口
*/
export async function updateUserProfile(data) {
const res = await request.put('/system/user/profile', data);
const res = await request.put('/barmgr/user/profile', data);
if (res.data.code === 200) {
return res.data.msg;
}
@ -23,10 +23,10 @@ export async function updateUserProfile(data) {
}
/**
* 修改当前登录用户头像
* 修改当前登录用户头像 - 门店专用接口
*/
export async function uploadAvatar(data) {
const res = await request.post('/system/user/profile/avatar', data);
const res = await request.post('/barmgr/user/profile/avatar', data);
if (res.data.code === 200) {
return res.data;
}

View File

@ -26,7 +26,7 @@
style="margin-top: 16px; overflow: hidden; cursor: pointer"
>
<el-image
:src="`${fastUrl}/${item.preview}`"
:src="item.preview"
class="template-image"
fit="contain"
alt="模板预览图"