修复使用 this.$options.data 报错问题
This commit is contained in:
parent
026a427103
commit
31106c91fb
@ -5,7 +5,7 @@ export default function(Vue, options) {
|
|||||||
mergeOptions(options)
|
mergeOptions(options)
|
||||||
Vue.mixin({
|
Vue.mixin({
|
||||||
data() {
|
data() {
|
||||||
if (this.$options.dicts === undefined || this.$options.dicts === null) {
|
if (this.$options === undefined || this.$options.dicts === undefined || this.$options.dicts === null) {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
const dict = new Dict()
|
const dict = new Dict()
|
||||||
|
Loading…
Reference in New Issue
Block a user