Async Functions (异步函数) 异步变同步

async checkFire () {

    let res = await this.$Posting(this.$api.xxx, {xx: xxx})

    if (res.code !== '0000') {

        console.log(res)

    }

}

猜你喜欢

转载自blog.csdn.net/Ajaxguan/article/details/80567303