This is an automated email from the ASF dual-hosted git repository.
sunyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 5f3c2b3 fix: When editing a route, the "URI override" radio button‘s
value is incorrect (#1721)
5f3c2b3 is described below
commit 5f3c2b3a04a34df7c4e7e7817168a01484d3a974
Author: jiemoxiaolong <[email protected]>
AuthorDate: Sat Apr 10 13:57:07 2021 +0800
fix: When editing a route, the "URI override" radio button‘s value is
incorrect (#1721)
---
web/src/pages/Route/components/CreateStep4/CreateStep4.tsx | 2 +-
web/src/pages/Route/transform.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/src/pages/Route/components/CreateStep4/CreateStep4.tsx
b/web/src/pages/Route/components/CreateStep4/CreateStep4.tsx
index f999f09..26976eb 100644
--- a/web/src/pages/Route/components/CreateStep4/CreateStep4.tsx
+++ b/web/src/pages/Route/components/CreateStep4/CreateStep4.tsx
@@ -59,7 +59,7 @@ const CreateStep4: React.FC<Props> = ({ form1, form2,
redirect, upstreamRef, ...
<h2 style={style}>
{formatMessage({ id:
'component.global.steps.stepTitle.pluginConfig' })}
</h2>
- {Boolean(Object.keys(plugins).length !== 0 || plugin_config_id !==
'') && <PluginPage initialData={plugins} plugin_config_id={plugin_config_id}
showSelector readonly />}
+ {Boolean(Object.keys(plugins).length !== 0 || plugin_config_id !==
'') && <PluginPage referPage = 'route' initialData={plugins}
plugin_config_id={plugin_config_id} showSelector readonly />}
{Boolean(Object.keys(script).length !== 0) && (
<PluginOrchestration data={rest.step3Data.script.chart} readonly
onChange={() => { }} />
)}
diff --git a/web/src/pages/Route/transform.ts b/web/src/pages/Route/transform.ts
index 90e9031..d5a9d26 100644
--- a/web/src/pages/Route/transform.ts
+++ b/web/src/pages/Route/transform.ts
@@ -62,7 +62,7 @@ const transformProxyRewrite2Formdata = (pluginsData: any) => {
let hostRewriteType = HOST_REWRITE_TYPE.KEEP;
if (pluginsData) {
- if (pluginsData.uri && pluginsData.regex_uri) {
+ if (pluginsData.regex_uri) {
URIRewriteType = URI_REWRITE_TYPE.REGEXP
}