fix: wording

This commit is contained in:
Methapon2001 2023-12-12 17:42:44 +07:00
parent 753b3a2ea9
commit 708e5812ce
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

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