Skip to content

Commit

Permalink
fix: 修复doc下没有配置globalStyles导致的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed Jul 5, 2023
1 parent 99a5bbb commit 3f017b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/swagger/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function transform(
}`
}

if (!reqCodes) reqCodes = 'Record<string, any> \n'
if (!reqCodes) reqCodes = 'undefined \n'

let resCodes = ``
const responseItem = versionCompatible({
Expand Down
2 changes: 1 addition & 1 deletion packages/doc/config/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default async function base() {
{
loader: 'style-resources-loader',
options: {
patterns: globalStyles,
patterns: globalStyles || [],
injector: 'append',
},
},
Expand Down

0 comments on commit 3f017b4

Please # to comment.