0
錯誤不能讀取屬性「然後」未定義:使用Promise.all()時,不能讀取未定義的屬性'then'?
getAll(id).then((resp) => {...}
...
export function getAll(id){
all([getOne(id), getTwo(id)]);
}
...
export all(){
return Promise.all([...arg])
}
I'don't知道如何修復它。