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 (
|
if (
|
||||||
currentInfo.path !== consistantPath(arr) &&
|
currentInfo.path.length >= consistantPath(arr).length &&
|
||||||
currentInfo.path.length > consistantPath(arr).length &&
|
|
||||||
currentInfo.path.startsWith(consistantPath(arr))
|
currentInfo.path.startsWith(consistantPath(arr))
|
||||||
) {
|
) {
|
||||||
error.title = 'แจ้งเตือน'
|
error.set({
|
||||||
error.msg = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ'
|
title: 'แจ้งเตือน',
|
||||||
error.show()
|
msg: 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ',
|
||||||
|
})
|
||||||
|
goto()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
socket.on('FileUpload', (data: StorageFile) => {
|
socket.on('FileUpload', (data: StorageFile) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue