feat:页面右上角header增加下拉选项‘API文档’ (#1257)
在页面右上角header增加下拉选项‘API文档’,点击后浏览器打开新标签,并跳转
This commit is contained in:
parent
5ee7fffd68
commit
d844b486d2
|
@ -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: '組織',
|
||||
|
|
Loading…
Reference in New Issue