Commit 492299ac authored by Evan You's avatar Evan You

adjust server entry

parent d2bb7729
import { app, router, store } from './app' import { app, router, store } from './app'
export default context => { export default context => {
// When using vue-router, it will automatically pick up the url from the // set router's location
// context. We just need to resolve the store state. router.push(context.url)
var s = Date.now() // call prefetch hooks on components matched by the route
const s = Date.now()
return Promise.all(router.getMatchedComponents().map(component => { return Promise.all(router.getMatchedComponents().map(component => {
if (component.prefetch) { if (component.prefetch) {
return component.prefetch(store) return component.prefetch(store)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment