fix(接口定义): 修复分享场景报告title和页面控制台报错问题 (#18120)

--bug=1016923 --user=王孝刚 【接口测试】接口测试报告浏览器页签优化
https://www.tapd.cn/55049933/s/1248331
--bug=1016926 --user=王孝刚
【接口测试】分享报告前端提示变量没有找到 https://www.tapd.cn/55049933/s/1248337

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-09-21 17:13:16 +08:00 committed by GitHub
parent 8717238123
commit 44560a4bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -711,10 +711,14 @@ export default {
created() {
this.getReport();
this.$EventBus.$on('projectChange', this.handleProjectChange);
if (this.$EventBus) {
this.$EventBus.$on('projectChange', this.handleProjectChange);
}
},
destroyed() {
this.$EventBus.$off('projectChange', this.handleProjectChange);
if (this.$EventBus) {
this.$EventBus.$off('projectChange', this.handleProjectChange);
}
},
computed: {
path() {
@ -780,7 +784,7 @@ export default {
transform: rotate(90deg);
}
.report-body{
min-width: 750px!important;
.report-body {
min-width: 750px !important;
}
</style>

View File

@ -5,7 +5,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
<title>Api Report</title>
</head>
<body>
<div id="shareApiReport"></div>