编辑器封装为一个组件,在多个页面使用。自定义了一个菜单项,在组件里面注册,报错 Uncaught (in promise) Error: Duplicated key 'customSave7' in menu items
at chunk-Y4OLSECU.js?v=81a33f40:26106:15
at e10.registerMenu (chunk-Y4OLSECU.js?v=81a33f40:26110:6)
at setup (RichEditor.vue:64:6)
at callWithErrorHandling (chunk-R5FCYZP3.js?v=81a33f40:1659:19)
at setupStatefulComponent (chunk-R5FCYZP3.js?v=81a33f40:9073:25)
at setupComponent (chunk-R5FCYZP3.js?v=81a33f40:9034:36)
at mountComponent (chunk-R5FCYZP3.js?v=81a33f40:7363:7)
at processComponent (chunk-R5FCYZP3.js?v=81a33f40:7329:9)
at patch (chunk-R5FCYZP3.js?v=81a33f40:6795:11)
at mountChildren (chunk-R5FCYZP3.js?v=81a33f40:7043:7)
你预期的样子是?
不报错
系统和浏览器及版本号
操作系统 mac m1
浏览器和版本 chrome 125.0.6422.78
wangEditor 版本 ^5.1.23
Githubissues.
Githubissues is a development platform for aggregating issues.
bug 描述
编辑器封装为一个组件,在多个页面使用。自定义了一个菜单项,在组件里面注册,报错 Uncaught (in promise) Error: Duplicated key 'customSave7' in menu items at chunk-Y4OLSECU.js?v=81a33f40:26106:15 at e10.registerMenu (chunk-Y4OLSECU.js?v=81a33f40:26110:6) at setup (RichEditor.vue:64:6) at callWithErrorHandling (chunk-R5FCYZP3.js?v=81a33f40:1659:19) at setupStatefulComponent (chunk-R5FCYZP3.js?v=81a33f40:9073:25) at setupComponent (chunk-R5FCYZP3.js?v=81a33f40:9034:36) at mountComponent (chunk-R5FCYZP3.js?v=81a33f40:7363:7) at processComponent (chunk-R5FCYZP3.js?v=81a33f40:7329:9) at patch (chunk-R5FCYZP3.js?v=81a33f40:6795:11) at mountChildren (chunk-R5FCYZP3.js?v=81a33f40:7043:7)
你预期的样子是?
不报错
系统和浏览器及版本号
wangEditor 版本 ^5.1.23
Githubissues.