upd: 调整代码

This commit is contained in:
purocean
2021-08-03 20:26:33 +08:00
parent 00b5f04f59
commit 187b3f0ddb
@@ -55,7 +55,7 @@ export default {
if (file) {
if (!ctx.doc.isSameFile(stack[idx], file)) {
stack.splice(idx + 1, stack.length)
stack.push({ type: file.type, repo: file.repo, name: file?.name, path: file?.path })
stack.push({ type: file.type, repo: file.repo, name: file.name, path: file.path })
idx = stack.length - 1
}
}