Closed enjoyWeb closed 2 years ago
上面2个地方如何配置,比如我在七牛云有20张图片,要替换掉images/thumb/thumb_{no}.webp
首先图片必须可以通过 1,2,3,4 这种序号访问,可以有前后缀 假设您的url为
https://example.com/foo/bar/cover_1_suffix.png
https://example.com/foo/bar/cover_2_suffix.png
......
https://example.com/foo/bar/cover_20_suffix.png
旧版设定 jsconfig.main.pic.filename
为 https://example.com/foo/bar/cover_{no}_suffix.png
新版(还未发布)设定
jsconfig:
main:
cover:
baseUrl: "https://example.com/foo/bar/"
filenameTemplate: "cover_{no}_suffix.png"
首先图片必须可以通过 1,2,3,4 这种序号访问,可以有前后缀 假设您的url为
https://example.com/foo/bar/cover_1_suffix.png https://example.com/foo/bar/cover_2_suffix.png ...... https://example.com/foo/bar/cover_20_suffix.png
旧版设定
jsconfig.main.pic.filename
为https://example.com/foo/bar/cover_{no}_suffix.png
新版(还未发布)设定jsconfig: main: cover: baseUrl: "https://example.com/foo/bar/" filenameTemplate: "cover_{no}_suffix.png"
👍厉害了,我还以为cdn: false那边也要改成cdn: true去了,那边不用动