fix: 模板编辑页面浏览器回退问题

This commit is contained in:
chenjianxing 2021-06-10 17:16:18 +08:00 committed by jianxing
parent 8e3407bbcb
commit 3db84e2e28
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import FieldTemplateEdit from "@/business/components/settings/workspace/template
import FormRichTextItem from "@/business/components/track/case/components/FormRichTextItem";
import TestCaseStepItem from "@/business/components/track/case/components/TestCaseStepItem";
import StepChangeItem from "@/business/components/track/case/components/StepChangeItem";
import {listenGoBack} from "@/common/js/utils";
export default {
name: "TestCaseTemplateEdit",
@ -117,6 +118,9 @@ export default {
} else {
this.url = 'field/template/case/update';
}
listenGoBack(() => {
this.showDialog = false;
});
} else {
this.form = {
id: "",