-
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-web): 修复门户系统前后端数据不一致导致渲染报错的问题 (#1287)
### 问题背景 在获取能否使用桌面功能时在前端调用的函数中使用了后端才能获取的RuntimeConfig.PORTAL_CONFIG的数据 导致本地开发时浏览器前后端渲染不一致,出现Hydration报错 ### 修复前 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/295e93eb-7ffe-47ed-96d6-9fd15322c77c) ### 修复后 解决了hydration报错问题 桌面路由相关本地开发环境与部署环境均正确渲染 并更新 ClusterInfoStore中的是否可以使用桌面功能/是否可以使用文件传输功能 需监听当前在线集群 58部署环境各页面测试通过
- Loading branch information
Showing
4 changed files
with
65 additions
and
14 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,5 @@ | ||
--- | ||
"@scow/portal-web": patch | ||
--- | ||
|
||
修复了本地开发环境出现 Hydration 报错的问题 |
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