Skip to content

Commit

Permalink
feat:新增文档中心和版本日志等说明 #2587
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Oct 10, 2024
1 parent 39a0298 commit e13019b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/frontend/devops-repository/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@
const username = cookies.get('bk_uid')
username && this.SET_USER_INFO({ username })
this.getPermissionDialogConfig()
const hasShowLog = cookies.get('hasShowLog') || false
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) {
cookies.set('hasShowLog', true)
this.$refs.head.showVersionLogs()
}
}
if (!this.isSubSaas && this.ciMode) {
this.loadDevopsUtils('/ui/devops-utils.js')
Expand Down
1 change: 1 addition & 0 deletions src/frontend/devops-repository/src/store/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default {
location.href = window.getLoginUrl() + '&is_from_logout=1'
}
} else {
cookie.remove('hasShowLog')
cookie.remove('bkrepo_ticket')
commit('SHOW_LOGIN_DIALOG', true)
}
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/locale/repository/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,9 @@
"clearSelectTip":"清除选择",
"previewErrorTip": "文件预览失败",
"helps": {
"documentation": "文档",
"documentation": "产品文档",
"releaseNote": "版本日志",
"feedback": "反馈",
"feedback": "问题反馈",
"openSource": "开源社区"
},
"currentVersion": "当前版本"
Expand Down

0 comments on commit e13019b

Please sign in to comment.