feat(desktop): 控制台插件授权面板与总览页调整,补前端依赖锁文件
This commit is contained in:
+12676
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 STATUS_TAG: Record<string, string> = {
|
||||||
const statusLabel = (s: string) => (s === 'published' ? '已发布' : s === 'disabled' ? '已停用' : '已吊销')
|
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()
|
const tableRef = ref()
|
||||||
|
|||||||
@@ -53,8 +53,14 @@ const recentPlugins = computed(() =>
|
|||||||
.slice(0, 6)
|
.slice(0, 6)
|
||||||
)
|
)
|
||||||
|
|
||||||
const statusTag = (s: string) => (s === 'published' ? 'success' : s === 'disabled' ? 'warning' : 'danger')
|
const STATUS_TAG: Record<string, string> = {
|
||||||
const statusLabel = (s: string) => (s === 'published' ? '已发布' : s === 'disabled' ? '已停用' : '已吊销')
|
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() {
|
async function load() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user