Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6154b8e3
authored
Mar 25, 2026
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: expose skip-retry option and show it in rules list
parent
dbf900a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
web/src/pages/Setting/Operation/SettingsChannelAffinity.jsx
+21
-12
No files found.
web/src/pages/Setting/Operation/SettingsChannelAffinity.jsx
View file @
6154b8e3
...
@@ -540,6 +540,15 @@ export default function SettingsChannelAffinity(props) {
...
@@ -540,6 +540,15 @@ export default function SettingsChannelAffinity(props) {
render
:
(
v
)
=>
<
Text
>
{
Number
(
v
||
0
)
||
'-'
}
</
Text
>,
render
:
(
v
)
=>
<
Text
>
{
Number
(
v
||
0
)
||
'-'
}
</
Text
>,
},
},
{
{
title
:
t
(
'失败后不重试'
),
dataIndex
:
'skip_retry_on_failure'
,
render
:
(
value
)
=>
(
<
Tag
color=
{
value
?
'orange'
:
'grey'
}
style=
{
{
marginRight
:
4
}
}
>
{
value
?
t
(
'是'
)
:
t
(
'否'
)
}
</
Tag
>
),
},
{
title
:
t
(
'覆盖模板'
),
title
:
t
(
'覆盖模板'
),
render
:
(
_
,
record
)
=>
{
render
:
(
_
,
record
)
=>
{
if
(
!
record
?.
param_override_template
)
{
if
(
!
record
?.
param_override_template
)
{
...
@@ -1096,6 +1105,18 @@ export default function SettingsChannelAffinity(props) {
...
@@ -1096,6 +1105,18 @@ export default function SettingsChannelAffinity(props) {
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
Row
gutter=
{
16
}
style=
{
{
marginTop
:
12
}
}
>
<
Col
xs=
{
24
}
sm=
{
12
}
>
<
Form
.
Switch
field=
'skip_retry_on_failure'
label=
{
t
(
'失败后不重试'
)
}
/>
<
Text
type=
'tertiary'
size=
'small'
>
{
t
(
'开启后,若该规则命中且请求失败,将不会切换渠道重试。'
)
}
</
Text
>
</
Col
>
</
Row
>
<
Collapse
<
Collapse
keepDOM
keepDOM
activeKey=
{
modalAdvancedActiveKey
}
activeKey=
{
modalAdvancedActiveKey
}
...
@@ -1251,18 +1272,6 @@ export default function SettingsChannelAffinity(props) {
...
@@ -1251,18 +1272,6 @@ export default function SettingsChannelAffinity(props) {
</
Text
>
</
Text
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
Row
gutter=
{
16
}
>
<
Col
xs=
{
24
}
sm=
{
12
}
>
<
Form
.
Switch
field=
'skip_retry_on_failure'
label=
{
t
(
'失败后不重试'
)
}
/>
<
Text
type=
'tertiary'
size=
'small'
>
{
t
(
'开启后,若该规则命中且请求失败,将不会切换渠道重试。'
)
}
</
Text
>
</
Col
>
</
Row
>
</
Collapse
.
Panel
>
</
Collapse
.
Panel
>
</
Collapse
>
</
Collapse
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment