题干保留一条

This commit is contained in:
kclf
2022-12-06 11:59:50 +08:00
parent 6edbaec1bc
commit 62663b8449

View File

@@ -264,6 +264,7 @@ export default {
};
const handleDel = ({ id, curItem }) => {
if (state.allFormsData.length > 1) {
// 接口删除
if (curItem.voteStemId) {
api.deleteVoteStem(curItem.voteStemId).then((res) => {
@@ -274,6 +275,7 @@ export default {
} else {
virtualDel(id);
}
}
};
const virtualDel = (id) => {
// 前端删除