diff --git a/web/src/components/Plugin/CodeMirrorDrawer.tsx b/web/src/components/Plugin/CodeMirrorDrawer.tsx index 95ef951663..5bf5093ffc 100644 --- a/web/src/components/Plugin/CodeMirrorDrawer.tsx +++ b/web/src/components/Plugin/CodeMirrorDrawer.tsx @@ -113,10 +113,11 @@ const CodeMirrorDrawer: React.FC = ({ onClick={() => { window.open(`https://github.com/apache/apisix/blob/master/doc/plugins/${name}.md`); }} + key={1} > Document , - , ]} diff --git a/web/src/components/Plugin/PluginPage.tsx b/web/src/components/Plugin/PluginPage.tsx index 8c5ab79122..6296e748f1 100644 --- a/web/src/components/Plugin/PluginPage.tsx +++ b/web/src/components/Plugin/PluginPage.tsx @@ -118,6 +118,7 @@ const PluginPage: React.FC = ({ title={[ item.avatar && ( = ({ }} /> ), - {item.name}, + {item.name}, ]} style={{ height: 66 }} extra={[ diff --git a/web/src/pages/Route/components/Step1/RequestConfigView.tsx b/web/src/pages/Route/components/Step1/RequestConfigView.tsx index 20d8457503..ec2538436c 100644 --- a/web/src/pages/Route/components/Step1/RequestConfigView.tsx +++ b/web/src/pages/Route/components/Step1/RequestConfigView.tsx @@ -16,7 +16,7 @@ */ import React from 'react'; import Form from 'antd/es/form'; -import { Checkbox, Button, Input, Select, Row, Col } from 'antd'; +import { Checkbox, Button, Input, Select, Row, Col, InputNumber } from 'antd'; import { PlusOutlined, MinusCircleOutlined } from '@ant-design/icons'; import { useIntl } from 'umi'; import { PanelSection } from '@api7-dashboard/ui'; @@ -267,6 +267,18 @@ const RequestConfigView: React.FC = ({ > + + + { status, upstream, upstream_id, + priority = 0, } = data; const form1Data: Partial = { name, @@ -154,6 +155,7 @@ export const transformRouteData = (data: RouteModule.Body) => { uris: uris || (uri && [uri]) || [], remote_addrs: remote_addrs || [''], methods, + priority, }; const redirect = data.plugins?.redirect || {};