Bläddra i källkod

提交打包插件

Lijy 1 år sedan
förälder
incheckning
70c357e831

+ 4 - 2
fhKeeper/formulahousekeeper/plugIn/form-design-master/src/generate/GenerateForm.vue

@@ -108,8 +108,10 @@ export default defineComponent({
             })
               .then(resp => resp.json())
               .then((json) => {
-                if (json instanceof Array) {
-                  item.options.remoteOptions = json.map(data => ({
+                console.log(json)
+                const res = json.data
+                if (res instanceof Array) {
+                  item.options.remoteOptions = res.map(data => ({
                     label: data[item.options.props.label],
                     value: data[item.options.props.value],
                     children: data[item.options.props.children],