cache.js 315 B

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