为了让获取过程可以异步,需要返回一个promise,Nuxt.js会等这个promise完成后再渲染组件。 ... <script> async fetch({ store, params }) { await ...
確定! 回上一頁