Skip to content

Commit 570691a

Browse files
committed
fix(SPA): 修复头像为空时会报错的问题
1 parent 5a52f5d commit 570691a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/spa/src/components/form/FormAvatarItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
},
4040
data () {
4141
return {
42-
avatar: this.$props.value.url,
42+
avatar: (this.$props.value || {}).url,
4343
}
4444
},
4545
methods: {

0 commit comments

Comments
 (0)