From 6e80fa14c8d3c725b482f4241290974edda399b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com> Date: Fri, 13 Jan 2023 01:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=92=8C=E5=88=86=E7=B1=BB=E6=97=A0=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E4=BD=BF=E7=94=A8=E9=9D=99=E6=80=81=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/index.js b/utils/index.js index d433808..a99de0b 100644 --- a/utils/index.js +++ b/utils/index.js @@ -46,9 +46,9 @@ const utils = { let _url = HaloConfig.defaultThumbnailUrl if (_url) { if (_url.indexOf('?') == -1) { - _url += `&next-v=${new Date().getTime()}` - } else { _url += `?next-v=${new Date().getTime()}` + } else { + _url += `&next-v=${new Date().getTime()}` } } if (!thumbnail) return _url; @@ -61,9 +61,9 @@ const utils = { let _url = HaloConfig.defaultImageUrl if (_url) { if (_url.indexOf('?') == -1) { - _url += `&next-v=${new Date().getTime()}` - } else { _url += `?next-v=${new Date().getTime()}` + } else { + _url += `&next-v=${new Date().getTime()}` } } if (!image) return _url; @@ -78,9 +78,9 @@ const utils = { let _url = HaloConfig.defaultAvatarUrl if (_url) { if (_url.indexOf('?') == -1) { - _url += `&next-v=${new Date().getTime()}` - } else { _url += `?next-v=${new Date().getTime()}` + } else { + _url += `&next-v=${new Date().getTime()}` } } return _url;