Skip to content

Commit

Permalink
perf:默认无分组的情况下分组名称的优化
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoymin committed Dec 9, 2023
1 parent b6f4ad7 commit db8bdf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions knife4j-vue/src/core/Knife4jAsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ SwaggerBootstrapUi.prototype.analysisSpringDocOpenApiGroupSuccess = function (da
if (KUtils.arrNotEmpty(groupUrls)) {
groupUrls.forEach(gu => {
var newGroup = {
name: KUtils.getValue(gu, 'name', 'knife4j', true),
name: KUtils.getValue(gu, 'name', 'default', true),
url: KUtils.getValue(gu, 'url', '', true),
location: KUtils.getValue(gu, 'url', '', true),
swaggerVersion: '3.0.3',
Expand All @@ -435,7 +435,7 @@ SwaggerBootstrapUi.prototype.analysisSpringDocOpenApiGroupSuccess = function (da
// https://gitee.com/xiaoym/knife4j/issues/I5L440#note_12238431
// 如果开发者没有创建bean对象,urls对象为空,取而代之的是直接返回url
newGroupData.push({
name: KUtils.getValue(groupData, 'url', 'default', true),
name: KUtils.getValue(groupData, 'name', 'default', true),
url: KUtils.getValue(groupData, 'url', '', true),
location: KUtils.getValue(groupData, 'url', '', true),
swaggerVersion: '3.0.3',
Expand Down

0 comments on commit db8bdf2

Please sign in to comment.