Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 #2270

Merged
merged 1 commit into from
Aug 24, 2021
Merged

fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 #2270

merged 1 commit into from
Aug 24, 2021

Conversation

bingyiyu1
Copy link
Contributor

正确的接口

错位的接口2

错位的接口1

如图所示我在三个文件夹分类下都有叫列表的接口,导出的菜单都定位到了技术服务费的列表接口位置。 debug后发现html是markdown转的,转的时候接口名的div id就是接口名,相同的接口名导致div id重复。故我在将div id设为了“接口名+catid”的格式,避免出现相同div id

@ariesly15 ariesly15 changed the base branch from master to hotfix August 24, 2021 06:24
@ariesly15 ariesly15 merged commit 47ebd8b into YMFE:hotfix Aug 24, 2021
ariesly15 added a commit that referenced this pull request Aug 24, 2021
ariesly15 added a commit that referenced this pull request Aug 25, 2021
* fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 (#2270)

Co-authored-by: wangxl <[email protected]>

* fix: delete follow info while delete project (#1691)

* Fix interfaceCol 报错'col_id不能为空' (#1839)

* fix: 选中'测试集合'tab未默认选中任一集合

* fix:未选中测试集合就拖拽调整用例顺序时报错‘col_id不能为空’

Co-authored-by: bingyiyu1 <[email protected]>
Co-authored-by: wangxl <[email protected]>
Co-authored-by: tangcent <[email protected]>
Co-authored-by: kayie <[email protected]>
ariesly15 added a commit that referenced this pull request Aug 30, 2021
* fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 (#2270)

Co-authored-by: wangxl <[email protected]>

* fix: delete follow info while delete project (#1691)

* Fix interfaceCol 报错'col_id不能为空' (#1839)

* fix: 选中'测试集合'tab未默认选中任一集合

* fix:未选中测试集合就拖拽调整用例顺序时报错‘col_id不能为空’

* chore: up version to 1.9.4

* opti: up static file

* chore: Version to 1.9.5

* chore: Version to 1.10.0

Co-authored-by: bingyiyu1 <[email protected]>
Co-authored-by: wangxl <[email protected]>
Co-authored-by: tangcent <[email protected]>
Co-authored-by: kayie <[email protected]>
daliandazi added a commit to daliandazi/yapi that referenced this pull request Jan 20, 2022
* master:
  chore: 更新前端静态文件,增加测试文件,增加code format 配置文件,增加自动生成changelog工具
  fix: issues 2357
  fix: [2361] 修复所有分类被删除时,同步问题. 解决方案: 增加 "默认分类"
  feat: add nonexistent tags from `/interface/(add/up/save)` (YMFE#1918)
  Update db.js (YMFE#2077)
  chore: update versions to 1.10.1
  opti: update static file
  chore: Version to 1.10.0
  chore: Version to 1.9.5
  opti: up static file
  chore: up version to 1.9.4
  Fix interfaceCol 报错'col_id不能为空' (YMFE#1839)
  fix: delete follow info while delete project (YMFE#1691)
  fix: 修复导出html接口文档时,不同目录下有相同接口名导致的接口错位问题 (YMFE#2270)

# Conflicts:
#	.prettierrc.js
#	package-lock.json
#	package.json
#	server/controllers/interface.js
#	server/utils/db.js
#	static/prd/assets.js
#	static/prd/[email protected]
#	static/prd/[email protected]
#	static/prd/[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants