cstongwei

Results 11 issues of cstongwei

请求进来的时候,FemasRouteLoadBalancer#getInstanceResponse方法中, com.tencent.tsf.femas.common.entity.Request femasRequest = Context.getRpcInfo().getRequest()里的targetService的namespace为null,Context.getRpcInfo()里的metadata里显示 是有 namespace。因为targetService的namespace为null,导致路由时候调用RouterRuleManager#getRouteRuleGroup的时候获取到的RouteRuleGroup为null,因为RouterRuleManager#getRouteRuleGroup传入的service是有namespace的。我测试的是springcloud 网关。不确定其它场景是不是有这样的问题。

## What is the purpose of the change XXXXX ## Brief changelog XX ## Verifying this change XXXX

## What is the purpose of the change fix #235

1、去除代码里的魔法值 ![image](https://user-images.githubusercontent.com/15072550/191398948-d4d28358-9c90-46b0-9f5a-b18e4ca2c044.png) 2、将femas存储的注册中心信息的处理提前到for循环之外的通过openapi调用获取注册中心信息之前,减少不必要的openapi调用以及不必要的循环重复处理。 ![image](https://user-images.githubusercontent.com/15072550/191399440-9893566b-dc02-4a87-831b-724e51f4dd66.png)

把react()方法注释掉,那如果react项目里原本有配置怎么处理? 比如如下的配置 plugins: [ react({ babel: { plugins: [ ["@babel/plugin-proposal-decorators", { legacy: true }], ["@babel/plugin-proposal-class-properties", { loose: true }], ], }, }), viteEasyMock(), visualizer({ open: true }),

![image](https://github.com/iceqing/react-amis-admin/assets/15072550/8d888470-25ab-4c06-a7c3-e0bc7feb40c5) ![image](https://github.com/iceqing/react-amis-admin/assets/15072550/93e53128-a0a5-43e4-8ba6-3f2b3bf0719b) 项目启动,登录进去后,警告信息还是存在

有没有办法在这个文件里改改。像官方文档描述的这样,可以自己定义context ![image](https://github.com/iceqing/react-amis-admin/assets/15072550/789a7261-696b-4ddf-a810-fa546bb6d8b6) 我前端不太会,你这个文件的写法和官方的 amis.embed 写法不一样,我折腾了几天,也没成功。不知道怎么改。请大佬不吝指教