refactor: show errorDialog delete folder
This commit is contained in:
parent
dd85ffaed8
commit
038e6c0b97
1 changed files with 5 additions and 5 deletions
|
|
@ -281,11 +281,11 @@ const useStorage = defineStore('storageStore', () => {
|
|||
)
|
||||
}
|
||||
|
||||
const idx = folder.value[path].findIndex(
|
||||
(v) => v.pathname === currentInfo.path,
|
||||
)
|
||||
console.log(idx)
|
||||
|
||||
if (currentInfo.path.includes(arr[arr.length - 1])) {
|
||||
error.title = 'ตำเเหน่งที่คุณอยู่ถูกลบ'
|
||||
error.msg = ''
|
||||
error.show()
|
||||
}
|
||||
})
|
||||
socket.on('FileUpload', (data: StorageFile) => {
|
||||
const arr = data.pathname.split('/').filter(Boolean)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue