fix: bug#11309

This commit is contained in:
JiangQiming 2023-03-31 15:52:20 +08:00
parent 9a8a0d2410
commit 1beaab1732
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ const getTreeData = () => {
if (props.mode === 'api') { if (props.mode === 'api') {
tree[i].schemas = item.components.schemas; tree[i].schemas = item.components.schemas;
tree[i].children = combData(item.paths); tree[i].children = combData(item.paths);
} else if (i < values.length - 2) { } else if (i < values.length - 1) {
const paths = filterPath( const paths = filterPath(
item.paths, item.paths,
values[values.length - 1].result as string[], values[values.length - 1].result as string[],