We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86253b0 commit b80ae34Copy full SHA for b80ae34
src/instance/internal/state.js
@@ -76,7 +76,7 @@ export default function (Vue) {
76
77
Vue.prototype._initData = function () {
78
var dataFn = this.$options.data
79
- var data = this._data = dataFn ? dataFn() : {}
+ var data = this._data = dataFn ? dataFn() || {} : {}
80
var props = this._props
81
var runtimeData = this._runtimeData
82
? typeof this._runtimeData === 'function'
0 commit comments