hookehuyr

fix

...@@ -1538,7 +1538,7 @@ export default { ...@@ -1538,7 +1538,7 @@ export default {
1538 } 1538 }
1539 1539
1540 function onClickCanvas(e: myEvent) { 1540 function onClickCanvas(e: myEvent) {
1541 - if (!checkFormEdited()) { 1541 + if (!checkFormEdited() && state.detailModel) {
1542 ElMessageBox.confirm( 1542 ElMessageBox.confirm(
1543 '您刚才修改过表单内容还未保存,是否离开?', 1543 '您刚才修改过表单内容还未保存,是否离开?',
1544 '温馨提示', 1544 '温馨提示',
......