feat(desktop): 控制台插件授权面板与总览页调整,补前端依赖锁文件

This commit is contained in:
2026-11-18 18:56:13 +08:00
parent 39b768d0b7
commit b8db2acb2f
3 changed files with 12692 additions and 4 deletions
@@ -45,8 +45,14 @@ const grantedRows = computed(() => {
}))
})
const statusTag = (s: string) => (s === 'published' ? 'success' : s === 'disabled' ? 'warning' : 'danger')
const statusLabel = (s: string) => (s === 'published' ? '已发布' : s === 'disabled' ? '已停用' : '已吊销')
const STATUS_TAG: Record<string, string> = {
published: 'success', testing: 'primary', disabled: 'warning', revoked: 'danger'
}
const STATUS_LABEL: Record<string, string> = {
published: '已发布', testing: '测试中', disabled: '已停用', revoked: '已吊销'
}
const statusTag = (s: string) => STATUS_TAG[s] || 'info'
const statusLabel = (s: string) => STATUS_LABEL[s] || s
// ---------- 表格多选批量撤销 ----------
const tableRef = ref()