fix: wrong path on delete alert

This commit is contained in:
Methapon2001 2023-12-13 10:24:30 +07:00
parent 708e5812ce
commit 1471600049
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -281,9 +281,9 @@ const useStorage = defineStore('storageStore', () => {
}
if (
currentInfo.path !== path &&
currentInfo.path.length > path.length &&
currentInfo.path.startsWith(path)
currentInfo.path !== consistantPath(arr) &&
currentInfo.path.length > consistantPath(arr).length &&
currentInfo.path.startsWith(consistantPath(arr))
) {
error.title = 'แจ้งเตือน'
error.msg = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ'