finally配合.then和.catch使用

p.then((res)=>{ console.log('成功=>', res) }).catch(()=>{ console.log('失败') }).finally(()=>{ this.loading = false })
posted @ 2023-06-10 13:05  scofield1906  阅读(4)  评论(0编辑  收藏  举报