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

feature/model
RuoYi 3 years ago
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…
Cancel
Save