async 方法名() {
const data = await axios.post(‘url‘,{参数})
}
async+await ==> 表示 请求结束后在往下执行
async的用法理解
原文:https://www.cnblogs.com/cs122/p/9782602.html