mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-08 18:02:25 +08:00
27 lines
682 B
JavaScript
27 lines
682 B
JavaScript
|
|
import Vue from './instance/index'
|
||
|
|
import { initGlobalAPI } from './global-api/index'
|
||
|
|
import { isServerRendering } from 'core/util/env'
|
||
|
|
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
|
||
|
|
|
||
|
|
initGlobalAPI(Vue)
|
||
|
|
|
||
|
|
Object.defineProperty(Vue.prototype, '$isServer', {
|
||
|
|
get: isServerRendering
|
||
|
|
})
|
||
|
|
|
||
|
|
Object.defineProperty(Vue.prototype, '$ssrContext', {
|
||
|
|
get () {
|
||
|
|
/* istanbul ignore next */
|
||
|
|
return this.$vnode && this.$vnode.ssrContext
|
||
|
|
}
|
||
|
|
})
|
||
|
|
|
||
|
|
// expose FunctionalRenderContext for ssr runtime helper installation
|
||
|
|
Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
||
|
|
value: FunctionalRenderContext
|
||
|
|
})
|
||
|
|
|
||
|
|
Vue.version = '__VERSION__'
|
||
|
|
|
||
|
|
export default Vue
|