This commit is contained in:
Net 2025-06-15 11:22:28 +08:00
parent af9f34c3d2
commit 1acd09fb02

View File

@ -130,7 +130,15 @@ const [register, { getValue, setValue }] = useForm({
],
});
setValue(getFile);
if (getFile.dzzw) {
setValue({ ...getFile, dzzw: getFile.dzzw.split(",") });
} else {
if (getFile.qtzw) {
setValue({ ...getFile, qtzw: getFile.qtzw.split(",") });
} else {
setValue({ ...getFile, dzzw: [], qtzw: [] });
}
}
async function submit() {
try {