export default {
data() {
return {
one: null,
two: null
};
},
onLoad(){
//调用
this.aGetList()
},
methods: {
async aGetList() {
this.one = await axios.get('/api/first');
this.bGetList();
},
async bGetList() {
this.two = await axios.get('/api/second');
console.log(this.two);
}
}
}
04-30
2521
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-09
1185
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-11
1365
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-31
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交