File tree 5 files changed +72
-9
lines changed
5 files changed +72
-9
lines changed Original file line number Diff line number Diff line change 9
9
<v-list-item-action >
10
10
<div class =" avatar-editable" >
11
11
<div class =" avatar-wrapper" >
12
- <img class =" avatar-img" :src =" avatar" aria-hidden =" true" >
12
+ <img class =" avatar-img" :src =" avatar" aria-hidden =" true" onerror = " this.src='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==' " >
13
13
</div >
14
14
<div class =" avatar-mask" >
15
15
<v-icon color =" #f5fafd" class =" avatar-mask-icon" >mdi-pencil</v-icon >
@@ -101,22 +101,22 @@ export default {
101
101
flex-grow : 0 ;
102
102
-webkit-flex-shrink : 0 ;
103
103
flex-shrink : 0 ;
104
- -webkit-border-radius : 50 % ;
105
- border-radius : 50 % ;
104
+ -webkit-border-radius : 4 px ;
105
+ border-radius : 4 px ;
106
106
margin-left : 16px ;
107
107
overflow : hidden ;
108
108
position : relative ;
109
109
width : 60px ;
110
110
height : 60px ;
111
111
}
112
112
.avatar-wrapper {
113
- -webkit-border-radius : 50 % ;
114
- border-radius : 50 % ;
113
+ -webkit-border-radius : 4 px ;
114
+ border-radius : 4 px ;
115
115
height : 100% ;
116
116
width : auto ;
117
117
}
118
118
.avatar-img {
119
- border-radius : 50 % ;
119
+ border-radius : 4 px ;
120
120
width : 60px ;
121
121
height : 60px ;
122
122
}
@@ -129,7 +129,7 @@ export default {
129
129
right : 0 ;
130
130
text-align : center ;
131
131
}
132
- .avatar-mask-icon {
132
+ .avatar-mask .avatar-mask-icon.v -icon {
133
133
font-size : 16px ;
134
134
top : -4px ;
135
135
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default {
60
60
.input-file { display : none ; }
61
61
.upload-button { margin-bottom : 16px ; }
62
62
.preview-avatar {
63
- border-radius : 50 % ;
63
+ border-radius : 4 px ;
64
64
width : 128px ;
65
65
height : 128px ;
66
66
margin : 16px ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ config.dev = app.env !== 'production'
68
68
}
69
69
app . context . avatarFromName = name => {
70
70
const { ALI_OSS_REGION , ALI_OSS_BUCKET , ALI_OSS_AVATAR_PREFIX } = process . env
71
- return `https://${ ALI_OSS_BUCKET } .${ ALI_OSS_REGION } .aliyuncs.com/${ ALI_OSS_AVATAR_PREFIX || '' } ${ name } `
71
+ return `https://${ ALI_OSS_BUCKET } .${ ALI_OSS_REGION } .aliyuncs.com/${ ALI_OSS_AVATAR_PREFIX || '' } ${ name || 'default.svg' } `
72
72
}
73
73
app . context . createOrder = async function ( ) {
74
74
try {
You can’t perform that action at this time.
0 commit comments