Browse Source

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

(cherry picked from commit 0c4d782085595711bf7dd61d34d8e5be4b945940)
任一存 3 years ago
parent
commit
2972d33afa

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

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