feat(admin): 新增后台系统配置管理
This commit is contained in:
@@ -310,3 +310,29 @@ export const auditBizTypeOptions = Object.entries(auditBizTypeMap).map(([value,
|
||||
value,
|
||||
label,
|
||||
}))
|
||||
|
||||
export const systemConfigCategoryMap: Record<string, string> = {
|
||||
chat: '聊天与群组',
|
||||
distribution: '分销',
|
||||
handoff: '交接与超时',
|
||||
integration: '第三方集成',
|
||||
listing: '商品发布',
|
||||
mobile: '移动端首页',
|
||||
order: '订单',
|
||||
profile: '个人中心',
|
||||
renter: '租客成长',
|
||||
sms: '短信',
|
||||
}
|
||||
|
||||
export const systemConfigCategoryOptions = Object.entries(systemConfigCategoryMap).map(
|
||||
([value, label]) => ({ value, label })
|
||||
)
|
||||
|
||||
export function systemConfigCategory(key: string) {
|
||||
return key.split('.')[0] || 'other'
|
||||
}
|
||||
|
||||
export function systemConfigCategoryLabel(key: string) {
|
||||
const category = systemConfigCategory(key)
|
||||
return systemConfigCategoryMap[category] ?? category
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user