refactor: show errorDialog delete folder

This commit is contained in:
somnetsak123 2023-12-12 15:57:16 +07:00
parent dd85ffaed8
commit 038e6c0b97

View file

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