|
@@ -20,7 +20,9 @@
|
|
|
|
|
|
if (isUpdate.value) {
|
|
|
const dataInfo = await getTextbookInfoDetail({ id: data.id });
|
|
|
- dataInfo.publishingDate = formatToDate(dataInfo.publishingDate);
|
|
|
+ if (dataInfo.publishingDate) {
|
|
|
+ dataInfo.publishingDate = formatToDate(dataInfo.publishingDate);
|
|
|
+ }
|
|
|
await setFieldsValue({ ...dataInfo });
|
|
|
await setFieldsValue({
|
|
|
classId: dataInfo.textbookClassRelationList.map((item) => item.classId),
|