限制非代理/企业用户登录
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 1m1s

This commit is contained in:
sexygoat
2026-04-02 14:25:03 +08:00
parent 2c6011bd4a
commit 0d0b5ec14a
2 changed files with 28 additions and 18 deletions

View File

@@ -47,8 +47,8 @@ const menuItems = computed(() => {
},
]
// 企业端显示授权卡和授权设备
if (userInfo.value?.user_type !== 3) {
// 企业端显示授权卡和授权设备 (仅 user_type === 4)
if (userInfo.value?.user_type === 4) {
menus.push(
{
title: '授权卡列表',
@@ -201,7 +201,7 @@ onMounted(() => {
<text class="text-11px text-white font-600">代理</text>
</view>
<view
v-else
v-else-if="userInfo?.user_type === 4"
class="px-2 py-0.5 bg-white/20 rounded-6px"
>
<text class="text-11px text-white font-600">企业</text>