check ข้อมูลก่อน map ระบบประเมิน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-16 14:09:56 +07:00
parent 8034c29373
commit 037d2ee26f
4 changed files with 30 additions and 23 deletions

View file

@ -218,8 +218,10 @@ async function fetchDataSigner() {
.get(config.API.evaluationSigner(id.value, 1))
.then((res) => {
const data = res.data.result;
author.value = data.author;
subject.value = data.subject;
if (data) {
author.value = data.author;
subject.value = data.subject;
}
})
.catch((e) => {
messageError($q, e);