虽然Vue中的方法是顺序执行的,但是如果某个方法执行时间很长(比如访问后台数据接口),那后面的方法不会等这个方法执行完就会执行。这说明,同一个方法内可以顺序执行,但是多个方法之间并不能严格控制顺序执行。
async mainMethod(){
await this.orderMethod1()
await this.orderMethod2()
await this.orderMethod3()
}
参考
https://blog.csdn.net/iiiliuyang/article/details/122176743