diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index faecae2..1a31052 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -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)