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( if (currentInfo.path.includes(arr[arr.length - 1])) {
(v) => v.pathname === currentInfo.path, error.title = 'ตำเเหน่งที่คุณอยู่ถูกลบ'
) error.msg = ''
console.log(idx) error.show()
}
}) })
socket.on('FileUpload', (data: StorageFile) => { socket.on('FileUpload', (data: StorageFile) => {
const arr = data.pathname.split('/').filter(Boolean) const arr = data.pathname.split('/').filter(Boolean)