This commit is contained in:
Vanessa 2023-03-27 11:46:13 +08:00 committed by Liang Ding
parent 3d1ff6ac16
commit 901ff9559b
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -828,6 +828,9 @@ export class Files extends Model {
return;
}
const liElement = this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${data.path}"]`);
if (!liElement) {
return;
}
let nextElement = liElement.nextElementSibling;
if (nextElement && nextElement.tagName === "UL") {
// 文件展开时,刷新