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

master
RuoYi 3 years ago
parent 026a427103
commit 31106c91fb
  1. 2
      ruoyi-ui/src/utils/dict/index.js

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