fix(tenant): 封堵审计文件与历史用户跨站访问
This commit is contained in:
@@ -312,6 +312,22 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.menu-item-scope {
|
||||
flex: none;
|
||||
margin-left: auto;
|
||||
padding: 0 5px;
|
||||
border: 1px solid #64748b;
|
||||
border-radius: 4px;
|
||||
color: #94a3b8;
|
||||
font-size: 10px;
|
||||
font-style: normal;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
:deep(.el-menu--collapse .menu-item-scope) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:deep(.el-menu--collapse .menu-item-badge) {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
|
||||
@@ -76,6 +76,7 @@ interface NavItem {
|
||||
to: string
|
||||
icon: Component
|
||||
permission?: string
|
||||
shared?: boolean
|
||||
}
|
||||
|
||||
interface NavGroup {
|
||||
@@ -107,6 +108,7 @@ const allNavGroups: NavGroup[] = [
|
||||
to: adminPath('points-mall'),
|
||||
icon: Present,
|
||||
permission: 'points_mall:view',
|
||||
shared: true,
|
||||
},
|
||||
{ label: '订单管理', to: adminPath('orders'), icon: Tickets, permission: 'order:view' },
|
||||
{
|
||||
@@ -120,6 +122,7 @@ const allNavGroups: NavGroup[] = [
|
||||
to: adminPath('pickup'),
|
||||
icon: Switch,
|
||||
permission: 'order:pickup',
|
||||
shared: true,
|
||||
},
|
||||
{ label: '商品管理', to: adminPath('listings'), icon: Shop, permission: 'listing:view' },
|
||||
{
|
||||
@@ -133,24 +136,28 @@ const allNavGroups: NavGroup[] = [
|
||||
to: adminPath('crash/categories'),
|
||||
icon: Present,
|
||||
permission: 'mohong:category',
|
||||
shared: true,
|
||||
},
|
||||
{
|
||||
label: '撞车商品',
|
||||
to: adminPath('crash/products'),
|
||||
icon: Present,
|
||||
permission: 'mohong:product_view',
|
||||
shared: true,
|
||||
},
|
||||
{
|
||||
label: '撞车订单',
|
||||
to: adminPath('crash/orders'),
|
||||
icon: Tickets,
|
||||
permission: 'mohong:order_view',
|
||||
shared: true,
|
||||
},
|
||||
{
|
||||
label: '撞车配置',
|
||||
to: adminPath('crash/config'),
|
||||
icon: Setting,
|
||||
permission: 'mohong:config',
|
||||
shared: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -238,6 +245,7 @@ const allNavGroups: NavGroup[] = [
|
||||
to: adminPath('manual-entries'),
|
||||
icon: EditPen,
|
||||
permission: 'cs_manual_entry:view',
|
||||
shared: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -567,6 +575,7 @@ async function handleForcedPasswordChange() {
|
||||
<el-icon><component :is="item.icon" /></el-icon>
|
||||
<template #title>
|
||||
<span class="menu-item-label">{{ item.label }}</span>
|
||||
<em v-if="siteStore.isTenant && item.shared" class="menu-item-scope">共享</em>
|
||||
<em
|
||||
v-if="item.to === refundReviewPath && pendingRefundCount > 0"
|
||||
class="menu-item-badge"
|
||||
|
||||
Reference in New Issue
Block a user