Skip to content

Commit

Permalink
fix(swagger): 修复文档引入的 css 和 js 失效问题 (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo authored Nov 30, 2024
1 parent 17acd9b commit 1b3b8f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/swagger/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
content="SwaggerUI"
/>
<title>SwaggerUI</title>
<link rel="stylesheet" href="https://unpkg.hyperf.wiki/[email protected]/swagger-ui.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.hyperf.wiki/[email protected]/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.hyperf.wiki/[email protected]/swagger-ui-standalone-preset.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js" crossorigin></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
Expand Down

0 comments on commit 1b3b8f0

Please sign in to comment.