From 708e5812ce85c91c3d7c7b35d12febfc732364c1 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:42:44 +0700 Subject: [PATCH] fix: wording --- Services/client/src/stores/storage.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index e2012d4..2d06fd1 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -280,9 +280,13 @@ const useStorage = defineStore('storageStore', () => { ) } - if (currentInfo.path !== path && currentInfo.path.startsWith(path)) { - error.title = 'ตำเเหน่งที่คุณอยู่ถูกลบ' - error.msg = '' + if ( + currentInfo.path !== path && + currentInfo.path.length > path.length && + currentInfo.path.startsWith(path) + ) { + error.title = 'แจ้งเตือน' + error.msg = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ' error.show() } })