refactor: 题目删除和逻辑关联优化,#182 (#393)

Co-authored-by: jiangchunfu <jiangchunfu@kaike.la>
This commit is contained in:
Jiangchunfu 2024-08-12 14:06:38 +08:00 committed by sudoooooo
parent c8c1031c29
commit 3ba41f78ad

View File

@ -138,7 +138,7 @@ const onMoveDown = () => {
}
}
const onDelete = async () => {
if (unref(hasShowLogic)) {
if (unref(hasShowLogic) || getShowLogicText.value) {
ElMessageBox.alert('该问题被逻辑依赖,请先删除逻辑依赖', '提示', {
confirmButtonText: '确定',
type: 'warning'