Showing
1 changed file
with
2 additions
and
2 deletions
| 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: 2023-03-03 10:14:40 | 4 | + * @LastEditTime: 2023-03-03 12:20:49 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -328,7 +328,7 @@ const checkUserPassword = () => { | ... | @@ -328,7 +328,7 @@ const checkUserPassword = () => { |
| 328 | 328 | ||
| 329 | // 根据规则隐藏相应字段 | 329 | // 根据规则隐藏相应字段 |
| 330 | const checkRules = () => { | 330 | const checkRules = () => { |
| 331 | - const rule_list = [...formInfo.value['rule_list']]; | 331 | + const rule_list = formInfo.value['rule_list'] ? [...formInfo.value['rule_list']] : []; |
| 332 | formData.value.forEach(item => { | 332 | formData.value.forEach(item => { |
| 333 | // 给受作用的字段绑定判断规则 | 333 | // 给受作用的字段绑定判断规则 |
| 334 | // 规则失效需要踢出 | 334 | // 规则失效需要踢出 | ... | ... |
-
Please register or login to post a comment