mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
style: 优化 pr_200 代码
This commit is contained in:
parent
742dc67235
commit
30e7a76de9
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,5 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
pnpm-lock.yaml
|
||||
.vscode
|
||||
.idea
|
||||
|
@ -94,10 +94,7 @@ export const fetchImages = async (targetData?: ConfigType) => {
|
||||
// 正则判断图片是否为 url,是则直接返回该 url
|
||||
if (/^(http|https):\/\/([\w.]+\/?)\S*/.test(targetData.image)) return targetData.image
|
||||
// 新数据动态处理
|
||||
const {
|
||||
image,
|
||||
package: targetDataPackage
|
||||
} = targetData
|
||||
const { image } = targetData
|
||||
// 兼容旧数据
|
||||
if (image.includes('@') || image.includes('base64')) return image
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user