Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

预览接口页,报 JS 404 错误。 #437

Open
wubaiqing opened this issue Nov 25, 2020 · 6 comments
Open

预览接口页,报 JS 404 错误。 #437

wubaiqing opened this issue Nov 25, 2020 · 6 comments

Comments

@wubaiqing
Copy link

点击接口预览按钮,进入页面后,所有的页面都报 404:

https://github.elemecdn.com/highlightjs/cdn-release/9.8.0/build/highlight.min.js

image

@alysee0079
Copy link

点击接口预览按钮,进入页面后,所有的页面都报 404:

https://github.elemecdn.com/highlightjs/cdn-release/9.8.0/build/highlight.min.js

image

解决了么?

@Clloz
Copy link

Clloz commented Jan 28, 2021

我也是遇到这个问题,这个highlight.min.js和一堆css都是404,预览页面打不开

@peterxiemin
Copy link

点击接口预览按钮,进入页面后,所有的页面都报 404:

https://github.elemecdn.com/highlightjs/cdn-release/9.8.0/build/highlight.min.js

image

restc的版本更新至0.5.0,执行npm i 即可,可以参考pr:#446

@xiaoyangzhang
Copy link

执行了,highlight.min.js还是报404

@xieshengnan
Copy link

有解决的么

@xueyou2000
Copy link

restc 这个依赖包里的highlightjs 的js和css依赖找不到了,可以手动修改 ./node_modules/restc/faas/index.html 文件

highlightjs相关的css和js引入改为下面的

<link rel="stylesheet" href="https://unpkg.com/highlightjs@9.8.0/styles/default.css">
<script src="https://unpkg.com/highlightjs@9.8.0/highlight.pack.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants