uniapp的问题,我刚接触这些有点看不到这些代码,求解
代码奉上:
getEmptyTask() {
let data = {
eventType: "change"
};
this.$api.changelist(data).then(res => {
//console.log(res)
if (res.success && res.resultCode == "0") {
this.prlist = res.resistEmpList
this.updatePrlist()
} else if (res.success) {
uni.showToast({
title: res.resultMessage,
icon: "none",
duration: 3000
});
this.prlist = []
}
}).catch(res => {
console.log(res)
})
},