diff --git a/src/api/profile/index.js b/src/api/profile/index.js index 428ddb5..9d6a047 100644 --- a/src/api/profile/index.js +++ b/src/api/profile/index.js @@ -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; } diff --git a/src/views/template/beer/index.vue b/src/views/template/beer/index.vue index 9e6325a..5c8f70a 100644 --- a/src/views/template/beer/index.vue +++ b/src/views/template/beer/index.vue @@ -26,7 +26,7 @@ style="margin-top: 16px; overflow: hidden; cursor: pointer" >