优化一键部署脚本, 增加cloudtentacles

This commit is contained in:
yml2213
2026-05-26 17:24:27 +08:00
parent b2d7ed18a3
commit 3b0319dfe3
3 changed files with 43 additions and 36 deletions
@@ -30,7 +30,6 @@ import { formatAdminDateTime } from '@/utils/admin-time'
const route = useRoute()
const router = useRouter()
const sidebarStorageKey = 'admin-sidebar-collapsed'
const isDevMode = import.meta.env.DEV
const isSidebarCollapsed = ref(
typeof window !== 'undefined' && window.localStorage.getItem(sidebarStorageKey) === '1',
)
@@ -52,21 +51,16 @@ type AdminNavItem = {
}
const platformConfigNavItems = computed<AdminNavItem[]>(() => {
const items: AdminNavItem[] = [
return [
{ to: '/admin/platform-shops?tab=ninetyone', label: '91卡券', icon: Connection },
{ to: '/admin/platform-shops?tab=notifications', label: '内部通知', icon: Bell },
{ to: '/admin/platform-shops?tab=kuaishouEticket', label: '快手小店核销', icon: Tickets },
]
if (isDevMode) {
items.push({
{
to: '/admin/platform-shops?tab=cloudtentacles',
label: 'cloudtentacles',
icon: Setting,
})
}
return items
},
]
})
const navItems = computed(() => {