hookehuyr

fix

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-26 23:52:36 3 * @Date: 2022-05-26 23:52:36
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-12-06 16:52:33 5 + * @LastEditTime: 2022-12-06 17:40:43
6 * @FilePath: /data-table/src/App.vue 6 * @FilePath: /data-table/src/App.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -73,7 +73,7 @@ onMounted(async () => { ...@@ -73,7 +73,7 @@ onMounted(async () => {
73 // }); 73 // });
74 // 数据收集设置 74 // 数据收集设置
75 const code = getUrlParams(location.href) ? getUrlParams(location.href).code : ''; 75 const code = getUrlParams(location.href) ? getUrlParams(location.href).code : '';
76 - const { data, extend } = await getFormSettingAPI({ form_code: code }); 76 + const { data } = await getFormSettingAPI({ form_code: code });
77 const form_setting = {}; 77 const form_setting = {};
78 if (data.length) { 78 if (data.length) {
79 data[0].property_list.forEach((prop) => { 79 data[0].property_list.forEach((prop) => {
...@@ -84,7 +84,7 @@ onMounted(async () => { ...@@ -84,7 +84,7 @@ onMounted(async () => {
84 ? prop["setting_value"] 84 ? prop["setting_value"]
85 : prop["setting_value"][0], 85 : prop["setting_value"][0],
86 }; 86 };
87 - Object.assign(form_setting, obj, extend); 87 + Object.assign(form_setting, obj, data[0]['extend']);
88 }); 88 });
89 } 89 }
90 // 缓存表单设置 90 // 缓存表单设置
......