在actions 中使用async / await. // 假設getData() 和getOtherData() 返回的是Promise actions: { async actionA ({ commit }) { commit('gotData', await ...
確定! 回上一頁