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

adjust server entry

parent d2bb7729
import { app, router, store } from './app'
export default context => {
// When using vue-router, it will automatically pick up the url from the
// context. We just need to resolve the store state.
var s = Date.now()
// set router's location
router.push(context.url)
// call prefetch hooks on components matched by the route
const s = Date.now()
return Promise.all(router.getMatchedComponents().map(component => {
if (component.prefetch) {
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