diff --git a/admin-frontend/src/component/addSubsModal.tsx b/admin-frontend/src/component/addSubsModal.tsx index a1238d8..ef53a76 100644 --- a/admin-frontend/src/component/addSubsModal.tsx +++ b/admin-frontend/src/component/addSubsModal.tsx @@ -26,7 +26,7 @@ function InputTagCustom(prop: InputTagCustomProp) { return ( <> { - prop.disabled ? 不支持标签: + prop.disabled ? 不支持标签: <> {value.length === 0 && 全部标签 @@ -77,9 +77,12 @@ export function AddModal({ } const handleSubmit = (value: any) => { let newVal = Object.assign({}, value) - if (typeof newVal.tags != 'object') { + if (typeof newVal.tags !== 'object') { newVal.tags = [] } + if (typeof newVal.cats !== 'object') { + newVal.cats = [] + } if (newVal.target === '') { newVal.target = 'default' } diff --git a/admin-frontend/src/component/subscribeCard.tsx b/admin-frontend/src/component/subscribeCard.tsx index 1f5b407..71c5ac8 100644 --- a/admin-frontend/src/component/subscribeCard.tsx +++ b/admin-frontend/src/component/subscribeCard.tsx @@ -67,7 +67,7 @@ export function SubscribeCard({groupNumber, config, reload, groupSubscribes}: Su }) } return ( - + @@ -81,15 +81,18 @@ export function SubscribeCard({groupNumber, config, reload, groupSubscribes}: Su , ]}> -
+ + + { platformConf.hasTarget ? config.target : 无帐号 } + {Object.keys(platformConf.categories).length > 0 ? config.cats.map((catKey: number) => ({platformConf.categories[catKey]})) : - 不支持类型} + 不支持类型} {platformConf.enabledTag ? config.tags.length > 0 ? config.tags.map(tag => ({tag})) : (全部标签) : - 不支持Tag} + 不支持Tag}
diff --git a/admin-frontend/src/pages/admin/configPage/index.tsx b/admin-frontend/src/pages/admin/configPage/index.tsx index 66b1160..9e4c31b 100644 --- a/admin-frontend/src/pages/admin/configPage/index.tsx +++ b/admin-frontend/src/pages/admin/configPage/index.tsx @@ -37,7 +37,8 @@ export function ConfigPage(prop: ConfigPageProp) { {`${key} - ${value.name}`} }> - + {value.subscribes.map((subs, idx) => )}