diff --git a/components/avatar/Avatar.jsx b/components/avatar/Avatar.jsx index d9e9ae3bc..4b68cf7eb 100644 --- a/components/avatar/Avatar.jsx +++ b/components/avatar/Avatar.jsx @@ -20,9 +20,9 @@ export default { icon: String, }, data () { - this.isExistSlot = false - this.childrenWidth = 0 return { + isExistSlot: false, + childrenWidth: 0, scale: 1, } },