Commit fedbacf1 authored by 皮倩雯's avatar 皮倩雯

fix: '网关配置路径修改'

parent ac3fd6c8
Pipeline #54971 passed with stages
......@@ -79,16 +79,20 @@ const GateConfig = () => {
}
});
setLoading(true);
GetReRoutes({
GetReRoutesFirst({
UpstreamPathTemplate: '',
key: '',
}).then(res => {
setLoading(false);
if (res.code === 0) {
console.log(res.data);
setTableData(res.data);
} else {
GetReRoutesFirst({
})
.then(res => {
setLoading(false);
if (res.code === 0) {
console.log(res.data);
setTableData(res.data);
}
})
.catch(err => {
setLoading(false);
GetReRoutes({
UpstreamPathTemplate: '',
key: '',
}).then(resdata => {
......@@ -100,8 +104,7 @@ const GateConfig = () => {
console.log(123);
}
});
}
});
});
}, [flag]);
const columns = [
......
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