fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 #2270
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
![错位的接口1](https://user-images.githubusercontent.com/21303785/126414125-40ef138c-98fa-4106-863b-4f090971cf93.png)
如图所示我在三个文件夹分类下都有叫列表的接口,导出的菜单都定位到了技术服务费的列表接口位置。 debug后发现html是markdown转的,转的时候接口名的div id就是接口名,相同的接口名导致div id重复。故我在将div id设为了“接口名+catid”的格式,避免出现相同div id