📅  最后修改于: 2022-03-11 14:57:09.909000             🧑  作者: Mango
computed: {
userWithIcon () {
return {
...this.user,
icon: this.user.icon && require(`../assets/imgs/${this.user.icon}`)
}
}
}