mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Infinite cycle, maximum number of cycles failed and page scaling (#4121)
This commit is contained in:
parent
5d546c0a6f
commit
88023f34ba
|
|
@ -129,7 +129,8 @@ def loop(workflow_manage_new_instance, node: INode, generate_loop):
|
|||
is_interrupt_exec = False
|
||||
loop_node_data = node.context.get('loop_node_data') or []
|
||||
loop_answer_data = node.context.get("loop_answer_data") or []
|
||||
current_index = node.context.get("current_index") or 0
|
||||
start_index = node.context.get("current_index") or 0
|
||||
current_index = start_index
|
||||
node_params = node.node_params
|
||||
start_node_id = node_params.get('child_node', {}).get('runtime_node_id')
|
||||
loop_type = node_params.get('loop_type')
|
||||
|
|
@ -144,7 +145,7 @@ def loop(workflow_manage_new_instance, node: INode, generate_loop):
|
|||
details=loop_node_data[current_index])
|
||||
|
||||
for item, index in generate_loop(current_index):
|
||||
if 0 < max_loop_count <= index - current_index and loop_type == 'LOOP':
|
||||
if 0 < max_loop_count <= index - start_index and loop_type == 'LOOP':
|
||||
raise Exception(_('Exceeding the maximum number of cycles'))
|
||||
"""
|
||||
指定次数循环
|
||||
|
|
|
|||
|
|
@ -3,7 +3,11 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,
|
||||
viewport-fit=cover"
|
||||
/>
|
||||
<base target="_blank" />
|
||||
<title>%VITE_APP_TITLE%</title>
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,
|
||||
viewport-fit=cover"
|
||||
viewport-fit=cover"
|
||||
/>
|
||||
<base target="_blank" />
|
||||
<title>%VITE_APP_TITLE%</title>
|
||||
|
|
|
|||
Loading…
Reference in New Issue