fix(测试跟踪): 编辑用例页面Title汇总问题

--bug=1024033 --user=宋昌昌 【测试跟踪】功能用例-新建-版本和tab页标题未显示 https://www.tapd.cn/55049933/s/1346570
--bug=1024045 --user=宋昌昌 【测试跟踪】编辑用例tab页-再单击功能用例tab-顶部Title 标题显示为 null https://www.tapd.cn/55049933/s/1346459
This commit is contained in:
song-cc-rock 2023-03-07 19:38:18 +08:00 committed by fit2-zhao
parent ea17848783
commit d68ac65a25
1 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,12 @@ export default {
let title = response.data[4].paramValue;
if (title) {
localStorage.setItem("default-document-title", title);
document.title = title;
if (this.$route.fullPath.indexOf("/track/case/edit") === -1) {
// , , titletitle
document.title = title;
}
} else {
localStorage.setItem("default-document-title", "MeterSphere");
}
if (response.data[0].paramValue) {
this.shortcutIcon();