Explorar el Código

模板 get改post

licailing hace 4 años
padre
commit
f7e10d0e8f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/resources/templates/EditViewTemplate.ftl

+ 1 - 1
src/main/resources/templates/EditViewTemplate.ftl

@@ -135,7 +135,7 @@
             }
             }
             <#list model.fields as field>
             <#list model.fields as field>
             <#if (field.formType == 'select' || field.formType == 'multiSelect') && field.apiFlag == '2'>
             <#if (field.formType == 'select' || field.formType == 'multiSelect') && field.apiFlag == '2'>
-            this.$http.get('${field.optionsMethod}', {size: 1000, query: {del: false}}).then(res => {
+            this.$http.post('${field.optionsMethod}', {size: 1000, query: {del: false}}, {body: 'json'}).then(res => {
                 if (res.content.length > 0) {
                 if (res.content.length > 0) {
                     res.content.forEach(item => {
                     res.content.forEach(item => {
                         this.${field.modelName}Options.push({
                         this.${field.modelName}Options.push({