From afe6ab17f86fc7cc52ca053e30bc5059f56ee947 Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 15 Sep 2025 14:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=85=B1=E5=AF=8C?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=95=86?= =?UTF-8?q?=E6=88=B7=E8=A7=92=E8=89=B2=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/tabbar/my.vue | 2 +- src/sheep/api/user.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index 0f2cfed..b81d89b 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -433,7 +433,7 @@ onLoad(async () => { }) const isMerchant = async () => { - const { data } = await userApi.isMerchant() + const { data } = await userApi.isMallMchUser() if (data) state.menuList.unshift({ text: "共富商城商品管理", icon: "/static/icon/service_4.png", router: "/pages/prosperity-shop/goods-manage" }) } diff --git a/src/sheep/api/user.ts b/src/sheep/api/user.ts index 140b108..059f5c4 100644 --- a/src/sheep/api/user.ts +++ b/src/sheep/api/user.ts @@ -60,12 +60,18 @@ export default { }, }) }, - // 判断是否是商户角色 + // 判断是否是合作商家商户角色 isMerchant: (): Promise => request({ url: "/admin/role/isMchUser", method: "GET", }), + // 判断是否是共富商城商户角色 + isMallMchUser: (): Promise => + request({ + url: "/admin/role/isMallMchUser", + method: "GET", + }), // 判断用户移动端角色 userRole: () => request({