vue中函数执行完再执行另一个函数
async funone() {await axios.post('xxxxxxx', params).then(res => {}).catch(err => {})}async funtwo() {await axios.post('xxxxxxx', params).then(res => {}).catch(err => {})}async funthree() {
·
async funone() {
await axios.post('xxxxxxx', params)
.then(res => {})
.catch(err => {})
}
async funtwo() {
await axios.post('xxxxxxx', params)
.then(res => {})
.catch(err => {})
}
async funthree() {
await this.funone()
await this.funtwo()
await axios.post('xxxxxxx', params)
.then(res => {})
.catch(err => {})
}
更多推荐
已为社区贡献2条内容
所有评论(0)