mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
题干保留一条
This commit is contained in:
@@ -264,15 +264,17 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleDel = ({ id, curItem }) => {
|
const handleDel = ({ id, curItem }) => {
|
||||||
// 接口删除
|
if (state.allFormsData.length > 1) {
|
||||||
if (curItem.voteStemId) {
|
// 接口删除
|
||||||
api.deleteVoteStem(curItem.voteStemId).then((res) => {
|
if (curItem.voteStemId) {
|
||||||
if (res.data.code === 200) {
|
api.deleteVoteStem(curItem.voteStemId).then((res) => {
|
||||||
virtualDel(id);
|
if (res.data.code === 200) {
|
||||||
}
|
virtualDel(id);
|
||||||
});
|
}
|
||||||
} else {
|
});
|
||||||
virtualDel(id);
|
} else {
|
||||||
|
virtualDel(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const virtualDel = (id) => {
|
const virtualDel = (id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user