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

This commit is contained in:
RuoYi 2021-11-24 15:00:51 +08:00
parent 026a427103
commit 31106c91fb
1 changed files with 1 additions and 1 deletions

View File

@ -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()