feat: 分段问题

This commit is contained in:
wangdan-fit2cloud 2024-02-29 16:22:08 +08:00
parent a0fcf300f4
commit 8d4b72e11c

View File

@ -49,6 +49,7 @@
</template>
<script setup lang="ts">
import { ref, reactive, onMounted, watch } from 'vue'
import { cloneDeep } from 'lodash'
import type { TabsPaneContext } from 'element-plus'
import EditParagraphDialog from './EditParagraphDialog.vue'
import { filesize, getImgUrl } from '@/utils/utils'
@ -100,7 +101,7 @@ function deleteHandle(item: any, index: number, cIndex: number) {
}
function updateContent(data: any) {
newData.value[currentPIndex.value].content[currentCIndex.value] = data
newData.value[currentPIndex.value].content[currentCIndex.value] = cloneDeep(data)
emit('update:data', newData.value)
}