actions 當中加入 nuxtServerInit 方法,其中 nuxtServerInit 的兩個參數都是自動注入的。 const actions = { nuxtServerInit({ commit }, { req }) { const ...
確定! 回上一頁