add sku mapping
This commit is contained in:
@@ -20,6 +20,8 @@ import {
|
||||
FileSearchOutlined,
|
||||
ApiOutlined,
|
||||
HistoryOutlined,
|
||||
BarcodeOutlined,
|
||||
LinkOutlined,
|
||||
} from '@ant-design/icons-vue'
|
||||
import type { Component } from 'vue'
|
||||
|
||||
@@ -53,6 +55,7 @@ const initOpenKeys = () => {
|
||||
const path = route.path
|
||||
if (path.startsWith('/order')) openKeys.value = ['orders-group']
|
||||
else if (path.startsWith('/refund')) openKeys.value = ['refunds-group']
|
||||
else if (path.startsWith('/sku-')) openKeys.value = ['sku-group']
|
||||
else if (path.startsWith('/logs')) openKeys.value = ['logs-group']
|
||||
}
|
||||
|
||||
@@ -64,6 +67,15 @@ const menuItems: MenuItem[] = [
|
||||
{ key: '/', icon: DashboardOutlined, label: '首页' },
|
||||
{ key: '/users', icon: UserOutlined, label: '用户管理', adminOnly: true },
|
||||
{ key: '/products', icon: ShoppingOutlined, label: '产品管理' },
|
||||
{
|
||||
key: 'sku-group',
|
||||
icon: BarcodeOutlined,
|
||||
label: 'SKU 管理',
|
||||
children: [
|
||||
{ key: '/sku-origins', icon: BarcodeOutlined, label: '内部 SKU' },
|
||||
{ key: '/sku-mappings', icon: LinkOutlined, label: 'SKU 映射' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'orders-group',
|
||||
icon: FileTextOutlined,
|
||||
@@ -126,6 +138,8 @@ const breadcrumbItems = computed(() => {
|
||||
'/order-items': '订单子项',
|
||||
'/refunds': '退款列表',
|
||||
'/refund-items': '退款子项',
|
||||
'/sku-origins': '内部 SKU',
|
||||
'/sku-mappings': 'SKU 映射',
|
||||
'/roles': '角色管理',
|
||||
'/route-groups': '路由组管理',
|
||||
'/mq-status': '队列监控',
|
||||
|
||||
Reference in New Issue
Block a user