美文网首页
await的使用方式

await的使用方式

作者: blank的小粉er | 来源:发表于2019-05-31 10:37 被阅读0次

案列

       async changeWay(way,id) {
            console.log(way,id);
            var res=await this.axios({
                method: 'post',
                 url: `${
                    this.siteUrl
                }/app/channel/updateSettleType?appid=web.2019&timestamp=${
                    this.timestamp
                }`,
                data: {
                    channelId: id,
                    settleType: way
                }            
            })
             console.log(res);

        },

相关文章

网友评论

      本文标题:await的使用方式

      本文链接:https://www.haomeiwen.com/subject/jufwtctx.html