cache.js 277 B

123456789101112131415
  1. import Vue from '../../../dist/vue.common.js'
  2. const app = {
  3. props: ['id'],
  4. serverCacheKey: props => props.id,
  5. render (h) {
  6. return h('div', '/test')
  7. }
  8. }
  9. export default () => {
  10. return Promise.resolve(new Vue({
  11. render: h => h(app, { props: { id: 1 }})
  12. }))
  13. }