From 80758b0ac090ea80d50dd89b58275a0b416a6b7c Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 30 Jan 2024 17:32:24 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4=E6=97=A7=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E7=94=A8=E6=88=B7=E9=A2=9D=E5=A4=96=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 34b1b9f1..96daf0ad 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -122,26 +122,6 @@ const useUserStore = defineStore('user', { this.phonenumber = user.phonenumber; this.email = user.email; this.sex = user.sex; - // 额外信息 - try { - this.profile = JSON.parse(user.profile); - } catch (error) { - console.error(error); - this.profile = { - color: { - critical: '#e8994a', - event: '#c5d2dc', - major: '#494040', - minor: '#5f70a8', - sound: 'custom', - warning: '#b9e1dd', - }, - custom: 'hrxz.com-exz2s3uxhc47391.mp3', - pwdErrCount: 0, - pwdErrTime: 0, - sound: 'custom', - }; - } // 验证返回的roles是否是一个非空数组 if (Array.isArray(roles) && roles.length > 0) {