import {fun1,fun2,} from "@/api/seting.js";从 api 中引到页面中的办法fun1(),fun2()let c = 200 //申请传的参数let a = fun1(c)let b = fun2(c)Promise.all([a, b]).then((res) => { console.log(res) // 申请回来的是一个数组}).catch((err) => { console.log(err)})
import {fun1,fun2,} from "@/api/seting.js";从 api 中引到页面中的办法fun1(),fun2()let c = 200 //申请传的参数let a = fun1(c)let b = fun2(c)Promise.all([a, b]).then((res) => { console.log(res) // 申请回来的是一个数组}).catch((err) => { console.log(err)})