在异步组件中解决?

时间:2018-01-07 10:15:02

标签: javascript vue.js vue-router

我在Vue.js SSR中读过了Client Data Fetching

router.onReady(() => {
 // Add router hook for handling asyncData.
 // Doing it after initial route is resolved so that we don't double-fetch
 // the data that we already have. Using `router.beforeResolve()` so that all
 // async components are resolved.
 router.beforeResolve((to, from, next) => {
 // ....

有一条声明说:

  

使用router.beforeResolve()以便所有异步组件都可用   解决

“异步组件已解决”是什么意思?

0 个答案:

没有答案