Commit 31106c91 authored by RuoYi's avatar RuoYi

修复使用 this.$options.data 报错问题

parent 026a4271
...@@ -5,7 +5,7 @@ export default function(Vue, options) { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment