--fix bug

This commit is contained in:
yuping
2023-03-30 17:53:45 +08:00
parent 27493c9f58
commit c1710638c6

View File

@@ -431,6 +431,7 @@ const showModal = () => {
function showEditModal(ele) {
formValue.value = ele;
formValue.value.edit = true;
modal.value = true;
}
@@ -443,7 +444,7 @@ const editChapter = () => {
if (!formValue.value.name) {
return message.warning("请输入关卡名称");
}
if (formValue.value.id) {
if (formValue.value.edit) {
closeModal();
return;
}