mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
no message
This commit is contained in:
parent
a06a4095b6
commit
dd0720afa7
@ -59,6 +59,11 @@ const convertLocalResourcePath = (() => {
|
||||
return url
|
||||
}
|
||||
|
||||
// 正则判断必须是 gif、icns、ico、jpg、jpeg、png、svg 结尾
|
||||
if (!/\.(jpe?g|webp|png|gif|icns|ico|svg)$/i.test(url)) {
|
||||
return url
|
||||
}
|
||||
|
||||
if (urlRegex.test(url)) {
|
||||
return url.replace(serverPreUrl, appPreUrl)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user