Showing
2 changed files
with
4 additions
and
22 deletions
| ... | @@ -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-09 14:20:44 | 5 | + * @LastEditTime: 2022-12-28 11:02:30 |
| 6 | * @FilePath: /data-table/src/App.vue | 6 | * @FilePath: /data-table/src/App.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| ... | @@ -76,16 +76,7 @@ onMounted(async () => { | ... | @@ -76,16 +76,7 @@ onMounted(async () => { |
| 76 | const { data } = 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 | + Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); |
| 80 | - const key = prop["property_code"]; | ||
| 81 | - const obj = { | ||
| 82 | - [key]: | ||
| 83 | - prop["setting_value"].length > 1 | ||
| 84 | - ? prop["setting_value"] | ||
| 85 | - : prop["setting_value"][0], | ||
| 86 | - }; | ||
| 87 | - Object.assign(form_setting, obj, data[0]['extend']); | ||
| 88 | - }); | ||
| 89 | } | 80 | } |
| 90 | // 缓存表单设置 | 81 | // 缓存表单设置 |
| 91 | store.changeFormSetting(form_setting); | 82 | store.changeFormSetting(form_setting); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-12-22 18:58:41 | 4 | + * @LastEditTime: 2022-12-28 10:46:29 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -255,16 +255,7 @@ const checkUserSubscribe = async () => { | ... | @@ -255,16 +255,7 @@ const checkUserSubscribe = async () => { |
| 255 | const { data } = await getFormSettingAPI({ form_code: code }); | 255 | const { data } = await getFormSettingAPI({ form_code: code }); |
| 256 | const form_setting = {}; | 256 | const form_setting = {}; |
| 257 | if (data.length) { | 257 | if (data.length) { |
| 258 | - data[0].property_list.forEach((prop) => { | 258 | + Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); |
| 259 | - const key = prop["property_code"]; | ||
| 260 | - const obj = { | ||
| 261 | - [key]: | ||
| 262 | - prop["setting_value"].length > 1 | ||
| 263 | - ? prop["setting_value"] | ||
| 264 | - : prop["setting_value"][0], | ||
| 265 | - }; | ||
| 266 | - Object.assign(form_setting, obj, data[0]['extend']); | ||
| 267 | - }); | ||
| 268 | } | 259 | } |
| 269 | // 判断是否需要关注公众号, 弹出二维码识别 | 260 | // 判断是否需要关注公众号, 弹出二维码识别 |
| 270 | if (form_setting.wxzq_must_follow && form_setting.x_field_weixin_subscribe) { | 261 | if (form_setting.wxzq_must_follow && form_setting.x_field_weixin_subscribe) { | ... | ... |
-
Please register or login to post a comment