feat: 完善官网配置、预约管理与文章编辑

This commit is contained in:
zhanjunhao
2026-10-31 19:02:58 +08:00
parent 7b80c3bbb3
commit 1bf13bc226
54 changed files with 4898 additions and 203 deletions
@@ -26,6 +26,7 @@ import {
showError,
showSuccess,
showWarning,
toBoolean,
} from '../../../helpers';
// InputNumber 清空时 onChange 会收到 ''/null,parseInt 得到 NaN,
@@ -76,12 +77,11 @@ export default function SettingsSkillInject(props) {
useEffect(() => {
const currentInputs = {};
for (const key in DEFAULTS) {
currentInputs[key] = Object.prototype.hasOwnProperty.call(
props.options,
key,
)
const value = Object.prototype.hasOwnProperty.call(props.options, key)
? props.options[key]
: DEFAULTS[key];
currentInputs[key] =
typeof DEFAULTS[key] === 'boolean' ? toBoolean(value) : value;
}
setInputs(currentInputs);
setInputsRow(structuredClone(currentInputs));