Skip to content

Commit 88023f3

Browse files
authored
fix: Infinite cycle, maximum number of cycles failed and page scaling (#4121)
1 parent 5d546c0 commit 88023f3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

apps/application/flow/step_node/loop_node/impl/base_loop_node.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def loop(workflow_manage_new_instance, node: INode, generate_loop):
129129
is_interrupt_exec = False
130130
loop_node_data = node.context.get('loop_node_data') or []
131131
loop_answer_data = node.context.get("loop_answer_data") or []
132-
current_index = node.context.get("current_index") or 0
132+
start_index = node.context.get("current_index") or 0
133+
current_index = start_index
133134
node_params = node.node_params
134135
start_node_id = node_params.get('child_node', {}).get('runtime_node_id')
135136
loop_type = node_params.get('loop_type')
@@ -144,7 +145,7 @@ def loop(workflow_manage_new_instance, node: INode, generate_loop):
144145
details=loop_node_data[current_index])
145146

146147
for item, index in generate_loop(current_index):
147-
if 0 < max_loop_count <= index - current_index and loop_type == 'LOOP':
148+
if 0 < max_loop_count <= index - start_index and loop_type == 'LOOP':
148149
raise Exception(_('Exceeding the maximum number of cycles'))
149150
"""
150151
指定次数循环

ui/admin.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" href="./favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,
9+
viewport-fit=cover"
10+
/>
711
<base target="_blank" />
812
<title>%VITE_APP_TITLE%</title>
913
<script>

ui/chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta
77
name="viewport"
88
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,
9-
viewport-fit=cover"
9+
viewport-fit=cover"
1010
/>
1111
<base target="_blank" />
1212
<title>%VITE_APP_TITLE%</title>

0 commit comments

Comments
 (0)