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() } })