Skip to content

Commit b49df5d

Browse files
nickcdondependabot[bot]jerolinFaberiiinickctang
authored
🐛 修复代码库凭证切换导致页面白屏 (#540)
* ⬆️ Bump moment from 2.29.3 to 2.29.4 in /web Bumps [moment](https://github.com/moment/moment) from 2.29.3 to 2.29.4. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](moment/moment@2.29.3...2.29.4) --- updated-dependencies: - dependency-name: moment dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * feat: 分析方案适配团队节点 * style: 修正错别字 * feat: 后台管理团队节点、团队标签 * feat: 团队内管理节点、标签 * feat: 使用团队标签接口获取运行环境 * fix: 弹框标题 * fix: update node state * ⬆️ 升级配置 * 🔧 调整eslint配置 * ✨ 封装 webpack * ✨ 增加公共模块 * 🎨 调整登录微前端代码结构 * 🎨 调整基座代码结构 * 🎨 调整代码格式 * 🎨 调整tca-manage代码结构 * 🎨 调整tca-layout manage nav * 🎨 同步web shared模块 * 🎨 同步login模块,支持回车登录 * 🎨 同步web tca-manage模块 * 🎨 同步帮助文档,生成资源文件 * 🎨 节点支持状态调整 * 🍱 web 打包构建资源 * 🎨 调整团队节点管理,团队节点仅能选择团队标签 * 📦 更新代码分析微前端资源包 * 📝 帮助文档增加团队节点管理文档 * 🎨 团队概览显示唯一标识 * 📝 同步帮助文档至tca-document * 📝 fix en doc config * fix: 仓库认证失效 * 🐛 fix 代码库凭证切换 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jerolin <jerolin@tencent.com> Co-authored-by: Faberiii <qawb@foxmail.com> Co-authored-by: Faberi <105088205+Faberiii@users.noreply.github.com> Co-authored-by: nickctang <nickctang@tencent.com>
1 parent c61fb86 commit b49df5d

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

web/packages/tca-analysis/src/modules/repos/repo-list/tabs/authority.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ const Authority = ({ curRepo, orgSid, teamName, repoId }: IProps) => {
5858
curAuth = scmAuth.scm_oauth;
5959
break;
6060
}
61-
curAuth.auth_type = curRepo.scm_auth.auth_type;
61+
if(curAuth) {
62+
curAuth.auth_type = curRepo?.scm_auth?.auth_type;
63+
} else {
64+
curAuth = {};
65+
}
6266
}
6367

6468
const setCurAuth = (sshList = sshAuthList, httpList = httpAuthList, oauthList = oauthAuthList) => {
17 Bytes
Binary file not shown.

web/tca-deploy-source/conf/configs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
{
4141
"name": "tca-analysis",
4242
"description": "TCA Analysis 微前端",
43-
"commitId": "74b8d27f11cd06c37e3381dcc9ca5ac53ef755fd",
43+
"commitId": "bcc814127940a3358b6aaf264aee498d914f69e1",
4444
"match": "^/t/[^/]+/p/[^/]+/(code-analysis|repos|template|profile|group)",
4545
"js": [
4646
"/static/tca-analysis/runtime~tca-analysis-749a7dad.js",
4747
"/static/tca-analysis/vendors~tca-analysis-7f52f6b6.js",
48-
"/static/tca-analysis/tca-analysis-07af848b.js"
48+
"/static/tca-analysis/tca-analysis-55db2f4d.js"
4949
],
5050
"css": [
5151
"/static/tca-analysis/vendors~tca-analysis-9b6df0cb.css",

0 commit comments

Comments
 (0)