Skip to content

Commit

Permalink
perf:自定义文档】多服务聚合后如果服务名包含-会导致自定义文档页刷新报错[Gitee#I8EKAQ](https://gitee.co…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoymin committed Jan 7, 2024
1 parent 0a99c46 commit 5dd2690
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions knife4j-vue/src/core/Knife4jAsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -3372,7 +3372,7 @@ SwaggerBootstrapUi.prototype.createDetailMenu = function (addFlag) {
i18n: 'globalsettings',
tabName: this.getI18n().menu.globalsettings + '(' + groupName + ')',
component: 'GlobalParameters',
path: 'GlobalParameters-' + groupName
path: 'GlobalParameters$' + groupName
},
{
groupName: groupName,
Expand All @@ -3384,7 +3384,7 @@ SwaggerBootstrapUi.prototype.createDetailMenu = function (addFlag) {
i18n: 'officeline',
tabName: this.getI18n().menu.officeline + '(' + groupName + ')',
component: 'OfficelineDocument',
path: 'OfficelineDocument-' + groupName
path: 'OfficelineDocument$' + groupName
},
{
groupName: groupName,
Expand Down Expand Up @@ -3413,7 +3413,7 @@ SwaggerBootstrapUi.prototype.createDetailMenu = function (addFlag) {
i18n: 'other',
icon: 'icon-APIwendang',
// https://gitee.com/xiaoym/knife4j/issues/I8EKAQ
path: groupName + '@' + mdid + '@omd',
path: groupName + '$' + mdid + '$omd',
children: []
};
if (KUtils.arrNotEmpty(mdTag.children)) {
Expand Down
6 changes: 3 additions & 3 deletions knife4j-vue/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ const routes = [{
path: '/SwaggerModels/:groupName',
component: () => import('@/views/settings/SwaggerModels')
}, {
path: '/documentManager/GlobalParameters-:groupName',
path: '/documentManager/GlobalParameters$:groupName',
component: () => import('@/views/settings/GlobalParameters')
}, {
path: '/documentManager/OfficelineDocument-:groupName',
path: '/documentManager/OfficelineDocument$:groupName',
component: () => import('@/views/settings/OfficelineDocument')
}, {
path: '/documentManager/Settings',
component: () => import('@/views/settings/Settings')
}, {
path: '/:groupName@:mdid@omd/:id',
path: '/:groupName$:mdid$omd/:id',
component: () => import('@/views/othermarkdown/index')
}
]
Expand Down

0 comments on commit 5dd2690

Please sign in to comment.