From 0293f24864d927378391ea3eda5f28179ee618f0 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Sat, 21 Oct 2023 08:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=B4=E5=83=8F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 40eaef7..58e504b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -35,7 +35,7 @@ export default { let userAvatar = user.avatar; if (userAvatar) { if (userAvatar != "") { - userAvatar = userAvatar.startsWith('https') || userAvatar.startsWith('http') || avatar; + userAvatar = userAvatar.startsWith('https') || userAvatar.startsWith('http') ? userAvatar : avatar; } state.avatar = userAvatar; setStore({