This commit is contained in:
chashaobao
2025-12-29 23:49:51 +08:00
parent 23879fe88d
commit c586e4b227
5 changed files with 41 additions and 12 deletions

View File

@ -141,7 +141,13 @@ export default function MaterialViewPage() {
await postPublishJob(jobId!);
await handleClickContact();
} catch (e) {
Toast.error('通告发布失败');
console.error('submit error', e.errorCode, e.errorMsg);
console.dir(e);
if (e.errorCode === RESPONSE_ERROR_CODE.JOB_EXIST_ONE_PUBLISHED) {
Toast.info(e.errorMsg || e.errorCode, 3000);
} else {
Toast.error('通告发布失败');
}
collectEvent(CollectEventName.PUBLISH_JOB_FAILED, e);
}
}, [handleClickContact, jobId]);