vue2项目升级成vue3
vue2中的代码
created: function () {
this.getAllFlowCategoryData()
this.userId = this.$store.state.user.info.userId
this.getDoingCount()
this.getSentCount()
this.getDoneCount()
this.getTodoCount()
this.getAntThisWeekDoneInfo()
},
const created = () => function (){
console.log('aaaa')
}
vue3中有什么方法,可以实现created()的效果嘛
setup()
需要啥created啊,setup就是了