Procházet zdrojové kódy

Merge branch 'main' into staging

lex-wxl před 1 měsícem
rodič
revize
73944a5d9e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/store/modules/user.ts

+ 1 - 1
src/store/modules/user.ts

@@ -116,7 +116,7 @@ function handleUserInfo(userType: rolesType, userInfo: Record<string, any>) {
       realName = userInfo.realName
       phone = userInfo.phone
       subjectId = userInfo.subjectId
-      isVip = userInfo.userVip ? (userInfo.userVip?.vipType === "NOT_VIP" || !userInfo.userVip?.vipType ? false : true) : false
+      isVip = userInfo.userVip ? false : userInfo.userVip?.vipType === "NOT_VIP" || !userInfo.userVip?.vipType ? true : false
    } else {
       avatar = userInfo.avatar
       username = userInfo.nickname