Commit a5ca43ec by qlintonger xeno

feat: 修复额外内容

parent fb7284af
// 引入 TreeRenderResult 类型,该类型定义在 @/lib/XMLProcessor/src/typing 模块中
import { NewTreeModification, OldTreeModification, TreeRenderResult, TreeRenderResultFlatted } from '@/lib/XMLProcessor/src/typing'
import { md5 } from 'js-md5'
import { getUUID } from '@/utils'
import {getUUID} from '../utils/uuid.ts'
// 定义 Processing 类,用于处理 XML 数据
export class Processing {
......
import { UUID } from 'uuidjs'
export const getUUID = () => {
return 'g-' + UUID.generate()
}
......@@ -3,7 +3,6 @@ import { nodeSet } from '@/configs/node.config'
import { IDomEditor } from '@wangeditor/editor'
import { treeData, treeRef, treeSelectedKeys } from '../constants/tree'
import { dropdownConfig, editorRef, editorHtml } from '../constants'
import { UUID } from 'uuidjs'
import { getUUID } from '@/utils'
export const handleCreated = (editor: IDomEditor) => {
......@@ -34,8 +33,8 @@ export const setEditorActive = (key: string, callBack?: Function) => {
//获取节点的key
export const getKey = (elem: any): string => {
if (!elem) return ''
const key = elem.getAttribute('data-key')
if (key && elem != null) {
const key = elem?.getAttribute('data-key')
if (key) {
return key
} else {
elem = elem.parentElement
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment