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