未验证 提交 d844b486 编写于 作者: C Coooder-X 提交者: GitHub

feat:页面右上角header增加下拉选项‘API文档’ (#1257)

在页面右上角header增加下拉选项‘API文档’,点击后浏览器打开新标签,并跳转
上级 5ee7fffd
......@@ -8,6 +8,7 @@
<el-dropdown-item command="personal">{{ $t('commons.personal_information') }}</el-dropdown-item>
<el-dropdown-item command="about">{{ $t('commons.about_us') }} <i class="el-icon-info"/></el-dropdown-item>
<el-dropdown-item command="help">{{ $t('commons.help_documentation') }}</el-dropdown-item>
<el-dropdown-item command="ApiHelp">{{ $t('commons.api_help_documentation') }}</el-dropdown-item>
<el-dropdown-item command="old" v-show=isReadOnly @click.native="changeBar('old')">
{{ $t('commons.cut_back_old_version') }}
</el-dropdown-item>
......@@ -64,6 +65,9 @@ export default {
case "help":
window.location.href = "https://metersphere.io/docs/index.html";
break;
case "ApiHelp":
window.open('/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config', "_blank");
break;
default:
break;
}
......
......@@ -8,6 +8,7 @@ export default {
comment: '评论',
examples: '示例',
help_documentation: '帮助文档',
api_help_documentation: 'API文档',
delete_cancelled: '已取消删除',
workspace: '工作空间',
organization: '组织',
......
......@@ -8,6 +8,7 @@ export default {
comment: '評論',
examples: '示例',
help_documentation: '幫助文檔',
api_help_documentation: 'API文檔',
delete_cancelled: '已取消刪除',
workspace: '工作空間',
organization: '組織',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册