ปรับ mixin messageError แสดง result ก่อน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-10 13:56:18 +07:00
parent f4ee2b89fc
commit 174530e7f9
3 changed files with 4 additions and 3 deletions

View file

@ -376,11 +376,12 @@ export const useCounterMixin = defineStore("mixin", () => {
},
});
} else {
const message = e.response.data.result ?? e.response.data.message;
q.dialog({
component: CustomComponent,
componentProps: {
title: `พบข้อผิดพลาด`,
message: `${e.response.data.message}`,
message: `${message}`,
icon: "warning",
color: "red",
onlycancel: true,