async-await 异步请求
async aa(){
var that=this
console.log('100')
await axios({
method: 'get',
url: this.$store.state.url+'/ads',
headers: {Authorization:"Bearer "+that.$store.state.token}
}).then(function(data){
console.log(data);
});
console.log('200')
}

浙公网安备 33010602011771号