-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(portal): 修复集群配置文件中loginNodes配置为字符串数组时报错问题 (#1339)
### 问题: 获取集群配置信息的接口缺少兼容原有` loginNodes `为字符串数组情况的类型映射,导致按登录节点名称和地址渲染路由时出现`undefined` ### 修复: 1.此PR修复上述问题,兼容`loginNodes `为字符串数组时的情况 2.由于是集群配置信息获取接口,补充了`loginNodes`中配置了`scowd`情况的返回值 3.同时此PR删除了 #977 中标注的 deprecated 公共组件已经被再利用的情况的 deprecated 注释 ### 修改后: ``` loginNodes: # - name: login - name: i18n: default: 登录节点1 en: loginNode1 zh_cn: 登录节点1 address: 111.11.11.111:0000 scowd: port: 9999 ``` 上述配置形式时,集群接口配置文件中可以返回`scowd: { port: 9999 }` loginNodes只配置了字符串地址时 ``` loginNodes: - "111.11.11.111:0000" ``` 页面渲染成功 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/b6f13c18-eed8-4487-aee5-ced328310b13)
- Loading branch information
Showing
10 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@scow/portal-server": patch | ||
"@scow/portal-web": patch | ||
"@scow/config": patch | ||
"@scow/lib-server": patch | ||
"@scow/lib-web": patch | ||
--- | ||
|
||
修复门户系统集群登录节点只配置地址时路由渲染失败的问题,在集群配置接口返回中加入 scowd 配置信息 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters