Fastapi swagger-ui.css 、swagger-ui-bundle.js 无法加载
版本信息: python3.8 fastapi 0.78.0访问 /docs 查看接口文档是发现swagger资源无法加载(可能是npm宕机了)解决:尝试降低fastapi版本并未奏效,于是想下载下资源文件,改为本地静态资源加载 资源下载地址:swagger-ui/dist at master · swagger-api/swagger-ui · GitHub 1. 分别下载 swagger-ui.css 、swagger-ui-bundle.js,放置在本...
原创
2022-05-25 15:03:58 ·
4507 阅读 ·
9 评论