fix:修复共富商城判断是否商户角色的接口
This commit is contained in:
1 parent
8b5e55889d
commit
afe6ab17f8
2 files changed
+8
-2
No files matched your search
@@ -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" })
|
||||
}
|
||||
|
||||
@@ -60,12 +60,18 @@ export default {
|
||||
},
|
||||
})
|
||||
},
|
||||
// 判断是否是商户角色
|
||||
// 判断是否是合作商家商户角色
|
||||
isMerchant: (): Promise<any> =>
|
||||
request({
|
||||
url: "/admin/role/isMchUser",
|
||||
method: "GET",
|
||||
}),
|
||||
// 判断是否是共富商城商户角色
|
||||
isMallMchUser: (): Promise<any> =>
|
||||
request({
|
||||
url: "/admin/role/isMallMchUser",
|
||||
method: "GET",
|
||||
}),
|
||||
// 判断用户移动端角色
|
||||
userRole: () =>
|
||||
request({
|
||||
|
||||
Reference in new issue
Block a user