Commit bf9e3bae authored by xiaoye's avatar xiaoye

Update api.vue

parent a778c23c
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
const toUndefined = () => { const toUndefined = () => {
api.changeInfo.expireAt = undefined; api.changeInfo.expireAt = undefined;
}; };
api.changeInfo.date.length > 0 ? toDate() : toUndefined(); api.changeInfo.date?.length ?? 0 > 0 ? toDate() : toUndefined();
}); });
onBeforeMount(() : void => { onBeforeMount(() : void => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment