feat: 合并Gin_Vue

This commit is contained in:
TsMask
2023-10-16 17:12:24 +08:00
parent 771320a839
commit 743568861d
77 changed files with 734 additions and 1870 deletions

View File

@@ -132,18 +132,24 @@ const useUserStore = defineStore('user', {
this.phonenumber = user.phone;
this.email = user.email;
this.sex = user.gender;
// this.profile = JSON.parse(user.profile);
// 额外信息
try {
this.profile = JSON.parse(user.profile);
} catch (error) {
console.error(error);
this.profile = {
critical: '#FF5722',
major: '#FFB800',
minor: '#393D49',
warning: '#009688',
event: '#1E9FFF',
color: {
critical: '#e8994a',
event: '#c5d2dc',
major: '#494040',
minor: '#5f70a8',
sound: 'custom',
warning: '#b9e1dd',
},
custom: 'hrxz.com-exz2s3uxhc47391.mp3',
pwdErrCount: 0,
pwdErrTime: 0,
sound: 'custom',
};
}