소스 검색

编辑器-导航-场景导航:分组拖拽bug修复

(cherry picked from commit 0c4d782085595711bf7dd61d34d8e5be4b945940)
任一存 3 년 전
부모
커밋
2972d33afa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/qjkankan-editor/src/components/insertPositionTipInEditor.vue

+ 1 - 1
packages/qjkankan-editor/src/components/insertPositionTipInEditor.vue

@@ -252,7 +252,7 @@ export default {
             // 把原来那个二级分组条目删除
             // 把原来那个二级分组条目删除
             this.$nextTick(() => {
             this.$nextTick(() => {
               const toDeleteIndex = originalParentGroup.children.findIndex((eachLevel2Id) => {
               const toDeleteIndex = originalParentGroup.children.findIndex((eachLevel2Id) => {
-                return eachLevel2Id.endsWith('__need__delete__')
+                return eachLevel2Id.toString().endsWith('__need__delete__')
               })
               })
               originalParentGroup.children.splice(toDeleteIndex, 1)
               originalParentGroup.children.splice(toDeleteIndex, 1)
             })
             })