From e210dc6656f2f8ccc85f7eacfd013114352cd4e1 Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Thu, 10 Oct 2024 10:45:31 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=AD=E5=BF=83=E5=92=8C=E7=89=88=E6=9C=AC=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=AD=89=E8=AF=B4=E6=98=8E=20#2587?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-repository/src/App.vue | 6 +++++- src/frontend/devops-repository/src/store/actions/index.js | 1 + src/frontend/locale/repository/zh-CN.json | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontend/devops-repository/src/App.vue b/src/frontend/devops-repository/src/App.vue index cb33d1d0f7..4acc30f29f 100644 --- a/src/frontend/devops-repository/src/App.vue +++ b/src/frontend/devops-repository/src/App.vue @@ -35,10 +35,14 @@ const username = cookies.get('bk_uid') username && this.SET_USER_INFO({ username }) this.getPermissionDialogConfig() + const hasShowLog = sessionStorage.getItem('hasShowLog') !== null const logs = await getTrueVersion() if (logs.length > 0 && !this.ciMode && !this.isSubSaas) { this.$store.commit('SET_VERSION_LOGS', logs) - this.$refs.head.showVersionLogs() + if (!hasShowLog) { + sessionStorage.setItem('hasShowLog', true) + this.$refs.head.showVersionLogs() + } } if (!this.isSubSaas && this.ciMode) { this.loadDevopsUtils('/ui/devops-utils.js') diff --git a/src/frontend/devops-repository/src/store/actions/index.js b/src/frontend/devops-repository/src/store/actions/index.js index a037539c82..fee2facc23 100644 --- a/src/frontend/devops-repository/src/store/actions/index.js +++ b/src/frontend/devops-repository/src/store/actions/index.js @@ -128,6 +128,7 @@ export default { location.href = window.getLoginUrl() + '&is_from_logout=1' } } else { + sessionStorage.removeItem('hasShowLog') cookie.remove('bkrepo_ticket') commit('SHOW_LOGIN_DIALOG', true) } diff --git a/src/frontend/locale/repository/zh-CN.json b/src/frontend/locale/repository/zh-CN.json index 330d3efa5b..b73cef6c98 100644 --- a/src/frontend/locale/repository/zh-CN.json +++ b/src/frontend/locale/repository/zh-CN.json @@ -896,9 +896,9 @@ "clearSelectTip":"清除选择", "previewErrorTip": "文件预览失败", "helps": { - "documentation": "文档", + "documentation": "产品文档", "releaseNote": "版本日志", - "feedback": "反馈", + "feedback": "问题反馈", "openSource": "开源社区" }, "currentVersion": "当前版本"