删除库存和旧回调管理

This commit is contained in:
yml
2026-05-25 23:07:19 +08:00
parent 90ad866ecc
commit 2c7464b1eb
87 changed files with 94 additions and 5794 deletions
@@ -2,9 +2,7 @@
import { computed, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import {
Box,
Monitor,
Connection,
DataAnalysis,
Document,
Expand,
@@ -35,7 +33,6 @@ const isSidebarCollapsed = ref(
const currentRole = computed(() => getAdminRole())
const isAdmin = computed(() => currentRole.value === 'admin')
const isOperator = computed(() => currentRole.value === 'operator')
const roleLabel = computed(() => {
if (currentRole.value === 'admin') return '管理员'
@@ -57,14 +54,6 @@ const navItems = computed(() => {
{ to: '/admin/tasks', label: '任务', icon: List },
)
if (isAdmin.value || isOperator.value) {
items.push({ to: '/admin/inventory', label: '库存', icon: Box })
}
if (isAdmin.value || isOperator.value) {
items.push({ to: '/admin/webhook-events', label: 'Webhook', icon: Connection })
}
if (isAdmin.value) {
items.push(
{ to: '/admin/platform-shops', label: '平台配置', icon: Setting },