expose $ssrContext

This commit is contained in:
Evan You 2017-05-02 17:32:44 +08:00
parent 6b4f3da51d
commit 8d7ad197c3
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ Object.defineProperty(Vue.prototype, '$isServer', {
get: isServerRendering
})
Object.defineProperty(Vue.prototype, '$ssrContext', {
get () {
return this.$vnode.ssrContext
}
})
Vue.version = '__VERSION__'
export default Vue