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