确定关闭按钮

This commit is contained in:
wangjuan
2023-02-18 11:09:38 +08:00
parent 88ed4b5ed9
commit d02bcc7f41

View File

@@ -659,8 +659,10 @@ const closeDeleteStage = () => {
};
//删除阶段
const deleteStage = () => {
console.log(12345);
if (projectInfo.value.stageList.length === 1) {
projectInfo.value.stageList = [{id: '0', stageId: '0', name: '', remark: '', taskDraftDtoList: []}];
deleteStageModal.value = false;
return
}
projectInfo.value.stageList.splice(activeIndex.value, 1)