Skip to content

Commit

Permalink
bug:优化说明部分内容 #2643
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Oct 11, 2024
1 parent 1a651b3 commit f330e46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
RELEASE_MODE: true,
DEVOPS_SITE_URL: true,
SHOW_PROJECT_CONFIG_MENU: true,
SHOW_ANALYST_MENU: true
SHOW_ANALYST_MENU: true,
DOC_URL: true
},
// add your custom rules hered
rules: {
Expand Down
6 changes: 6 additions & 0 deletions src/frontend/devops-repository/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
var ADD_FROM_LOGOUT = '__IS_FROM_LOGOUT__' || 'not'
// 区分社区版与内部版 community -> 社区 tencent -> 内部
var RELEASE_MODE = '__BK_REPO_RELEASE_MODE__' || 'community'
// 存放文档中心的产品名
var DOC_NAME = '__BK_REPO_DOCS_FQDN__' ? 'bk--docs--center' : 'doc'
// 文档中心的地址
var DOC_URL = /^https?/.test(PAAS_SERVICE_URL)
? PAAS_SERVICE_URL + '/' + DOC_NAME + '/' :
'http://__BK_REPO_PAAS_FQDN__' + '/' + DOC_NAME + '/'
</script>
<script>
const inIframe = self !== top
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@
})
},
clickHelps (id) {
const languagePath = this.language === 'zh-cn' ? 'ZH' : 'EN'
const url = DOC_URL + '/markdown/' + languagePath + '/Devops/3.0/UserGuide/intro/README.md'
switch (id) {
case 'documentation':
window.open('https://bk.tencent.com/docs/markdown/ZH/Devops/3.0/UserGuide/Services/Console/Console.md', '_blank')
window.open(url, '_blank')
break
case 'releaseNote':
if (this.versionLogs.length > 0) {
Expand Down

0 comments on commit f330e46

Please sign in to comment.