Skip to content

Commit

Permalink
feat: 集群内部增加开发文档跳转链接
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Jul 25, 2024
1 parent 56b4dd1 commit 96d37f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="docs">{{ $t('commons.help.ko_docs') }}</el-dropdown-item>
<el-dropdown-item command="dev">{{ $t('commons.help.dev_doc') }}</el-dropdown-item>
<el-dropdown-item class="iconfont iconguanyu" command="about">{{$t("commons.help.about")}}</el-dropdown-item>
</el-dropdown-menu>
<el-dialog class="ko-dialog" :show-close="false" :visible.sync="aboutDialogVisible" width="50%">
Expand Down Expand Up @@ -52,6 +53,9 @@ export default {
case "docs":
window.open("https://github.com/1Panel-dev/KubePi/wiki", "_blank")
break
case "dev":
window.open("/kubepi/swagger/index.html", "_blank");
break
default:
this.aboutDialogVisible = true
break
Expand Down
1 change: 1 addition & 0 deletions web/dashboard/src/i18n/lang/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const message = {
help: "Help",
about: "About",
ko_docs: "Official Document",
dev_doc: "Development Document",
},
button: {
click_to_edit: "Click to edit",
Expand Down
1 change: 1 addition & 0 deletions web/dashboard/src/i18n/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const message = {
help: "帮助",
about: "关于",
ko_docs: "官方文档",
dev_doc: "开发文档",
},
button: {
click_to_edit: "编辑信息",
Expand Down

0 comments on commit 96d37f6

Please sign in to comment.