เพิ่มแสดง message error ของทดลองงาน
This commit is contained in:
parent
8a2eee16ec
commit
3909d816a9
2 changed files with 13 additions and 6 deletions
|
|
@ -353,6 +353,17 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
onlycancel: true,
|
||||
},
|
||||
});
|
||||
} else if (e.response.data.successful === false) {
|
||||
q.dialog({
|
||||
component: CustomComponent,
|
||||
componentProps: {
|
||||
title: `พบข้อผิดพลาด`,
|
||||
message: e.response.data.message,
|
||||
icon: "warning",
|
||||
color: "red",
|
||||
onlycancel: true,
|
||||
},
|
||||
});
|
||||
} else {
|
||||
q.dialog({
|
||||
component: CustomComponent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue