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