updated command template

This commit is contained in:
Warunee Tamkoo 2024-09-17 14:01:53 +07:00
parent 1267b04af3
commit de61513d9d
6 changed files with 211 additions and 143 deletions

View file

@ -439,18 +439,29 @@ export const useCounterMixin = defineStore("mixin", () => {
}
}
} else {
console.log("errror===>", e);
q.dialog({
component: CustomComponent,
componentProps: {
title: `พบข้อผิดพลาด`,
message: `ข้อมูลผิดพลาดทำให้เกิดการไม่ตอบสนองต่อการเรียกใช้งานดูเว็บไซต์`,
icon: "warning",
color: "red",
onlycancel: true,
},
});
if (msg === "") {
q.dialog({
component: CustomComponent,
componentProps: {
title: `พบข้อผิดพลาด`,
message: `ข้อมูลผิดพลาดทำให้เกิดการไม่ตอบสนองต่อการเรียกใช้งานดูเว็บไซต์`,
icon: "warning",
color: "red",
onlycancel: true,
},
});
} else {
q.dialog({
component: CustomComponent,
componentProps: {
title: `พบข้อผิดพลาด`,
message: msg,
icon: "warning",
color: "red",
onlycancel: true,
},
});
}
}
};