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

可否支持随机封面图 #388

Open
Macxx-could opened this issue Sep 17, 2023 · 2 comments
Open

可否支持随机封面图 #388

Macxx-could opened this issue Sep 17, 2023 · 2 comments
Labels
triage Issues waiting to be inspected

Comments

@Macxx-could
Copy link

我将文章的cover配置设为一个返回随机图片的API地址,结果这个API只请求了一次,进而导致全部文章的封面都是一样的,如下:
image
然后我通过修改 ARArticleCard 组件,实现了随机封面,如下:
image
目前的问题是:

  1. 因为请求太多了,加载速度太慢了,会导致文章列表很久(10+s)才出现,有办法优化吗?
    image
  2. 随机获取图片的API可否进行配置,现在这个API是我写死的,因为跨域的问题,我不知道该怎么让其变成可配置的
    image
@bennyxguo
Copy link
Member

这个我看看,我觉得更好的方式可能是放到生成器中去请求生成好图片链接。

@bennyxguo bennyxguo added the triage Issues waiting to be inspected label Sep 20, 2023
@chunyiw8080
Copy link

url随便传一个参数,比如 xxxx.cc?123,只要参数不同就会发多次请求。

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

No branches or pull requests

3 participants