From 8cd362cbb9c61870d5806bdf9374d33123a3389c Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 21 Feb 2025 09:24:03 +0700 Subject: [PATCH] fixing error linkage --- src/stores/mixin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index b46a6e085..67349f5e7 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -487,7 +487,10 @@ export const useCounterMixin = defineStore("mixin", () => { component: CustomComponent, componentProps: { title: `พบข้อผิดพลาด`, - message: e.message, + message: + e.message == "Failed to fetch" + ? "ไม่สามารถเชื่อมต่อกับฐานข้อมูลกรมการปกครองได้" + : e.message, icon: "warning", color: "red", onlycancel: true,