vue-简化登录请求代码async&await

async handleLogin() {
const res = await this.$http.post('login',this.formdata)
const {
data,
meta: {msg,status }
} = res.data
if (status === 200 {
} else {
}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43755104/article/details/107532887