新增任务tabbar切换刷新页面

This commit is contained in:
weipengfei 2023-08-28 14:28:11 +08:00
parent 0af355fbe2
commit e135fac2de

View File

@ -36,14 +36,15 @@
}
},
onLoad() {},
onShow() {},
onReady() {
onShow() {
this.loadList();
},
onReady() {
uni.$on('initOaTask', this.loadList);
},
methods: {
async loadList(){
let res = await taskLists({limit: 10, page: 1});
let res = await taskLists({limit: 15, page: 1});
this.list = res.data;
}
},