mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 16:56:40 +08:00
fix bug
This commit is contained in:
@@ -104,6 +104,16 @@ async function loadDownloadDirectories() {
|
|||||||
name: name,
|
name: name,
|
||||||
path: path,
|
path: path,
|
||||||
}
|
}
|
||||||
|
// 将初始数据拆分到堆栈中
|
||||||
|
const paths = path.split('/').filter(Boolean)
|
||||||
|
paths.map((name, index) => {
|
||||||
|
const path = '/' + paths.slice(0, index + 1).join('/') + '/'
|
||||||
|
itemstack.value.push({
|
||||||
|
type: 'dir',
|
||||||
|
name: name,
|
||||||
|
path: path,
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user