haojianlong 4 anni fa
parent
commit
5fd6d96581
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/ready/buildfloor/formItems.vue

+ 1 - 1
src/components/ready/buildfloor/formItems.vue

@@ -120,7 +120,7 @@ export default {
       getDataDictionary(params, res => {
         let arr = res.content.map(item => {
           const category = ['ENUM', 'MENUM', 'BOOLEAN']
-          if (item.category == 'STATIC' && item.dataType.includes(category) && item.dataSource) {
+          if (item.category == 'STATIC' && category.includes(item.dataType) && item.dataSource) {
             item.options = item.dataSource
             if (item.options[0]) {
               item.props = {