Vue CLI帮我们处理了async polyfill,可以在项目中直接使用,目前测试IE9+是支持的。
methods: {
async loginSubmit(){
....
const {code,msg,data} = await LoginPOST({phone,password});
....
await this.getUserInfo();
const path = this.$route.query.redirect;
....
}
}