= ({
) : (
{sceneList
- .filter(scene => scene.id !== 10)
+ .filter(scene => {
+ // 编辑模式下,如果当前选中的场景 id 是 10,则显示它
+ if (isEdit && formData.scenario === 10 && scene.id === 10) {
+ return true;
+ }
+ // 其他情况过滤掉 id 为 10 的场景
+ return scene.id !== 10;
+ })
.map(scene => {
const selected = formData.scenario === scene.id;
+ // 编辑模式下,如果当前场景 id 是 10,则禁用所有场景选择
+ const isDisabled = isEdit && formData.scenario === 10;
return (