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

This commit is contained in:
2026-11-18 18:56:13 +08:00
parent eeeaed1e14
commit 4fa716a0e2
3 changed files with 12692 additions and 4 deletions
File diff suppressed because it is too large Load Diff
@@ -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()
@@ -53,8 +53,14 @@ const recentPlugins = computed(() =>
.slice(0, 6)
)
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
async function load() {
loading.value = true