fix: alert on folder delete and goto root
This commit is contained in:
parent
1ee0520505
commit
0a81ff4ffa
1 changed files with 6 additions and 5 deletions
|
|
@ -281,13 +281,14 @@ const useStorage = defineStore('storageStore', () => {
|
|||
}
|
||||
|
||||
if (
|
||||
currentInfo.path !== consistantPath(arr) &&
|
||||
currentInfo.path.length > consistantPath(arr).length &&
|
||||
currentInfo.path.length >= consistantPath(arr).length &&
|
||||
currentInfo.path.startsWith(consistantPath(arr))
|
||||
) {
|
||||
error.title = 'แจ้งเตือน'
|
||||
error.msg = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ'
|
||||
error.show()
|
||||
error.set({
|
||||
title: 'แจ้งเตือน',
|
||||
msg: 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ',
|
||||
})
|
||||
goto()
|
||||
}
|
||||
})
|
||||
socket.on('FileUpload', (data: StorageFile) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue