Skip to content

Commit 0a99c46

Browse files
committed
perf:自定义文档】多服务聚合后如果服务名包含-会导致自定义文档页刷新报错[Gitee#I8EKAQ](https://gitee.com/xiaoym/knife4j/issues/I8EKAQ)
1 parent 21fc4d2 commit 0a99c46

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

knife4j-vue/src/core/Knife4jAsync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,8 @@ SwaggerBootstrapUi.prototype.createDetailMenu = function (addFlag) {
34123412
name: mdTag.name,
34133413
i18n: 'other',
34143414
icon: 'icon-APIwendang',
3415-
path: groupName + '-' + mdid + '-omd',
3415+
// https://gitee.com/xiaoym/knife4j/issues/I8EKAQ
3416+
path: groupName + '@' + mdid + '@omd',
34163417
children: []
34173418
};
34183419
if (KUtils.arrNotEmpty(mdTag.children)) {

knife4j-vue/src/router/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const routes = [{
4242
path: '/documentManager/Settings',
4343
component: () => import('@/views/settings/Settings')
4444
}, {
45-
path: '/:groupName-:mdid-omd/:id',
45+
path: '/:groupName@:mdid@omd/:id',
4646
component: () => import('@/views/othermarkdown/index')
4747
}
4848
]

0 commit comments

Comments
 (0)