Failed to resolve component: el-submenu

来源:1-1 导学

慕无忌5558439

2024-11-27

报错如下,需要怎么解决:
main.js:15 [Vue warn]: Failed to resolve component: el-submenu
at <SidebarItem key="/user/center" route= {path: ‘/user/center’, name: ‘userCenter’, meta: {…}, children: Array(0), component: ƒ}children: []component: () => {…}meta: {title: ‘userCenter’, icon: ‘el-icon-user’}name: “userCenter"path: “/user/center”[[Prototype]]: Object >
at <BaseTransition mode=“out-in” onBeforeEnter=fn onEnter=fn … >
at <Transition mode=“out-in” onBeforeEnter=fn onEnter=fn … >
at
at <ElMenu uniqueOpened=true background-color=”#545c64" text-color="#fff" … >
at
at
at <Index class=“sidebar-container” style= {backgroundColor: ‘#304156’} >
at <Index onVnodeUnmounted=fn ref=Ref< undefined > >
at
at

写回答

1回答

Sunday

2024-12-13

你好

这是说 el-submenu 不存在,可以改名成 el-sub-menu(element 在新版本中修改了这个组件的名字)

0
0

基于Vue3新标准,打造后台综合解决方案

基于Vue3重写Vue-element-admin,打造后台前端综合解决方案

1941 学习 · 1687 问题

查看课程