feat: 优化换行

This commit is contained in:
sudoooooo 2024-08-14 21:32:06 +08:00
parent 6775a9df5e
commit f6e3778a2d

View File

@ -367,7 +367,9 @@ function usePageEdit(
if (pageConf.value.length <= 1) return
const { startIndex, endIndex } = getSorter(index)
const newQuestionList = _cloneDeep(questionDataList.value)
const deleteFields = newQuestionList.slice(startIndex, endIndex - startIndex).map(i => i.field)
const deleteFields = newQuestionList
.slice(startIndex, endIndex - startIndex)
.map((i) => i.field)
// 删除分页判断题目是否存在逻辑关联
const hasLogic = deleteFields.filter((field) => {
@ -376,7 +378,7 @@ function usePageEdit(
return hasShowLogic || hasJumpLogic
})
if (hasLogic.length) {
ElMessageBox.alert('该分页下有题目被显示或跳转逻辑关联,请先清除逻辑依赖', '提示', {
ElMessageBox.alert('该分页下有题目被显示或跳转逻辑关联,请先清除', '提示', {
confirmButtonText: '确定',
type: 'warning'
})