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({