@@ -44,10 +44,11 @@ export const UpstreamTab = forwardRef<ITabInstance, IProps>(({server, isStream},
const upstreams = server?.upstreams;
if (Array.isArray(upstreams) && upstreams.length){
const items =upstreams.map((item: any)=>{
- if (!item.key){
- item.key = uniqueKey(20)
+ const copy = {...item};
+ if (!copy.key){
+ copy.key = uniqueKey(20)
}
- return item
+ return copy
})
setData(items)
}else {
@@ -43,7 +43,7 @@ export default defineConfig({
server:{
proxy: {
"/api":{
- target: 'http://10.10.0.1:8081',
+ target: 'http://10.10.0.1:8080',
// target: 'http://127.0.0.1:8080',
rewrite: path => path.replace(/^\/api/,"")