新增任务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() {}, onLoad() {},
onShow() {}, onShow() {
onReady() {
this.loadList(); this.loadList();
},
onReady() {
uni.$on('initOaTask', this.loadList); uni.$on('initOaTask', this.loadList);
}, },
methods: { methods: {
async loadList(){ async loadList(){
let res = await taskLists({limit: 10, page: 1}); let res = await taskLists({limit: 15, page: 1});
this.list = res.data; this.list = res.data;
} }
}, },