Skip to content

Commit 6b86151

Browse files
committed
fix:修复表单非空校验时会异常触发api拦截器的问题
1 parent 8b46557 commit 6b86151

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

dash-fastapi-frontend/callbacks/monitor_c/job_c/job_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def job_confirm(confirm_trigger, modal_type, edit_row_info, form_value, form_lab
378378
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
379379
modal_visible=dash.no_update,
380380
operations=dash.no_update,
381-
api_check_token_trigger={'timestamp': time.time()},
381+
api_check_token_trigger=dash.no_update,
382382
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
383383
)
384384

dash-fastapi-frontend/callbacks/system_c/config_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def dict_type_confirm(confirm_trigger, modal_type, edit_row_info, form_value, fo
351351
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
352352
modal_visible=dash.no_update,
353353
operations=dash.no_update,
354-
api_check_token_trigger={'timestamp': time.time()},
354+
api_check_token_trigger=dash.no_update,
355355
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
356356
)
357357

dash-fastapi-frontend/callbacks/system_c/dept_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def dept_confirm(confirm_trigger, modal_type, edit_row_info, form_value, form_la
348348
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
349349
modal_visible=dash.no_update,
350350
operations=dash.no_update,
351-
api_check_token_trigger={'timestamp': time.time()},
351+
api_check_token_trigger=dash.no_update,
352352
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
353353
)
354354

dash-fastapi-frontend/callbacks/system_c/dict_c/dict_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def dict_type_confirm(confirm_trigger, modal_type, edit_row_info, form_value, fo
355355
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
356356
modal_visible=dash.no_update,
357357
operations=dash.no_update,
358-
api_check_token_trigger={'timestamp': time.time()},
358+
api_check_token_trigger=dash.no_update,
359359
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
360360
)
361361

dash-fastapi-frontend/callbacks/system_c/dict_c/dict_data_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def dict_data_confirm(confirm_trigger, modal_type, edit_row_info, form_value, fo
350350
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
351351
modal_visible=dash.no_update,
352352
operations=dash.no_update,
353-
api_check_token_trigger={'timestamp': time.time()},
353+
api_check_token_trigger=dash.no_update,
354354
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
355355
)
356356

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/button_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def menu_confirm_button(confirm_trigger, modal_type, edit_row_info, parent_id, m
9090
],
9191
modal_visible=dash.no_update,
9292
operations=dash.no_update,
93-
api_check_token_trigger={'timestamp': time.time()},
93+
api_check_token_trigger=dash.no_update,
9494
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
9595
)
9696

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/content_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def menu_confirm_content(confirm_trigger, modal_type, edit_row_info, parent_id,
9898
],
9999
modal_visible=dash.no_update,
100100
operations=dash.no_update,
101-
api_check_token_trigger={'timestamp': time.time()},
101+
api_check_token_trigger=dash.no_update,
102102
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
103103
)
104104

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/menu_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def menu_confirm_menu(confirm_trigger, modal_type, edit_row_info, parent_id, men
104104
],
105105
modal_visible=dash.no_update,
106106
operations=dash.no_update,
107-
api_check_token_trigger={'timestamp': time.time()},
107+
api_check_token_trigger=dash.no_update,
108108
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
109109
)
110110

dash-fastapi-frontend/callbacks/system_c/notice_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def notice_confirm(confirm_trigger, modal_type, edit_row_info, notice_title, not
500500
notice_type_form_help=None if notice_type else '请输入公告类型!',
501501
modal_visible=dash.no_update,
502502
operations=dash.no_update,
503-
api_check_token_trigger={'timestamp': time.time()},
503+
api_check_token_trigger=dash.no_update,
504504
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
505505
)
506506

dash-fastapi-frontend/callbacks/system_c/post_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def post_confirm(confirm_trigger, modal_type, edit_row_info, form_value, form_la
339339
form_label_validate_info=[None if form_value_state.get(k) else f'{form_label_state.get(k)}不能为空!' for k in form_label_output_list],
340340
modal_visible=dash.no_update,
341341
operations=dash.no_update,
342-
api_check_token_trigger={'timestamp': time.time()},
342+
api_check_token_trigger=dash.no_update,
343343
global_message_container=fuc.FefferyFancyMessage('处理失败', type='error')
344344
)
345345

0 commit comments

Comments
 (0)