Commit 0bde5ae8 authored by 皮倩雯's avatar 皮倩雯

fix: '网关配置bug修复'

parent 04847268
Pipeline #54980 passed with stages
......@@ -72,7 +72,6 @@ const GateConfig = () => {
}).then(res => {
setLoading(false);
if (res.code === 0) {
console.log(res.data);
setTableData(res.data);
}
});
......@@ -270,7 +269,16 @@ const GateConfig = () => {
setSearchWord('');
setSearchWord1('');
setShowSearchStyle(false);
setFlag(flag + 1);
setLoading(true);
GetReRoutes({
UpstreamPathTemplate: '',
key: '',
}).then(res => {
setLoading(false);
if (res.code === 0) {
setTableData(res.data);
}
});
};
const handleSearch = e => {
......@@ -323,7 +331,15 @@ const GateConfig = () => {
Ids: e.id,
}).then(res => {
if (res.code === 0) {
setFlag(flag + 1);
GetReRoutes({
UpstreamPathTemplate: '',
key: '',
}).then(res => {
setLoading(false);
if (res.code === 0) {
setTableData(res.data);
}
});
notification.success({
message: '删除成功',
description: res.msg,
......@@ -339,7 +355,15 @@ const GateConfig = () => {
};
const onSubmit = () => {
setFlag(flag + 1);
GetReRoutes({
UpstreamPathTemplate: '',
key: '',
}).then(res => {
setLoading(false);
if (res.code === 0) {
setTableData(res.data);
}
});
};
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment