fix(测试跟踪): 功能用例编辑复制新增TAB页添加标题
This commit is contained in:
parent
58613fdb5f
commit
ca3880ca0b
|
@ -143,6 +143,7 @@ export default {
|
|||
|
||||
let title = response.data[4].paramValue;
|
||||
if (title) {
|
||||
localStorage.setItem("default-document-title", title);
|
||||
document.title = title;
|
||||
}
|
||||
if (response.data[0].paramValue) {
|
||||
|
|
|
@ -646,6 +646,10 @@ export default {
|
|||
this.handleSaveCaseWithEvent
|
||||
);
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
document.title = localStorage.getItem("default-document-title");
|
||||
next();
|
||||
},
|
||||
mounted() {
|
||||
this.getSelectOptions();
|
||||
|
||||
|
@ -969,6 +973,7 @@ export default {
|
|||
this.operationType = 'add';
|
||||
|
||||
// add
|
||||
document.title = this.$t('test_track.case.create_case');
|
||||
if (this.moduleOptions.length > 0) {
|
||||
this.form.module = this.moduleOptions[0].id;
|
||||
}
|
||||
|
@ -1065,6 +1070,7 @@ export default {
|
|||
this.form.id = null;
|
||||
testCase.casePublic = false;
|
||||
}
|
||||
document.title = testCase.name;
|
||||
this.currentTestCaseInfo = testCase;
|
||||
this.setFormData(testCase);
|
||||
this.setTestCaseExtInfo(testCase);
|
||||
|
|
Loading…
Reference in New Issue