前端最新2.2.2版本菜单找不到路由,打不开菜单页面

想把前端2.0.1 升级到2.2.2版本,下载新版本后,只修改了接口请求地址,运行,发现项目加的菜单都打不开,是为啥呢

image.png

在表单开发中能找到这个表ID

image.png


但是功能测试中可以打开

image.png

评论区

超级管理员 2025-09-22 17:00

看着菜单没有注册成功,贴一下 get-permission-info中menus的数据我看看

dtbadmin 2025-09-22 17:17

@超级管理员

左侧菜单都出来了的,就是点击后提示

[Vue Router warn]: Record with path "/storage/table/view/1925363085304946690" is either missing a "component(s)" or "children" property

image.png


{
    "id": 3135,
    "parentId": 0,
    "name": "仓储管理",
    "path": "/storage",
    "component": "",
    "componentName": "",
    "icon": "ep:van",
    "visible": true,
    "keepAlive": true,
    "alwaysShow": true,
    "nameI18n": "",
    "children": [
        {
            "id": 3136,
            "parentId": 3135,
            "name": "物资入库",
            "path": "table/view/1925363085304946690",
            "component": "",
            "componentName": "",
            "icon": "ep:shopping-cart",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "",
            "children": null
        },
        {
            "id": 3154,
            "parentId": 3135,
            "name": "物资出库",
            "path": "table/view/1925363216993509378",
            "component": "",
            "componentName": "",
            "icon": "ep:shopping-cart-full",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '商品出库',\n  //English\n  'en': '',\n}",
            "children": null
        },
        {
            "id": 3155,
            "parentId": 3135,
            "name": "库存调拔",
            "path": "table/view/1925363152103432194",
            "component": "",
            "componentName": "",
            "icon": "ep:shopping-trolley",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '库存调拔',\n  //English\n  'en': '',\n}",
            "children": null
        },
        {
            "id": 3156,
            "parentId": 3135,
            "name": "库内盘点",
            "path": "table/view/1925362856946065409",
            "component": "",
            "componentName": "",
            "icon": "ep:calendar",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '库内盘点',\n  //English\n  'en': '',\n}",
            "children": null
        },
        {
            "id": 3178,
            "parentId": 3135,
            "name": "借用申请",
            "path": "table/view/1935155719716876289",
            "component": "",
            "componentName": "",
            "icon": "ep:sold-out",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '借用申请',\n  //English\n  'en': '',\n}",
            "children": null
        },
        {
            "id": 3179,
            "parentId": 3135,
            "name": "归还管理",
            "path": "table/view/1935158283795574786",
            "component": "",
            "componentName": "",
            "icon": "ep:sell",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '归还管理',\n  //English\n  'en': '',\n}",
            "children": null
        },
        {
            "id": 3187,
            "parentId": 3135,
            "name": "备品采购申请",
            "path": "table/view/1925363367669686274",
            "component": "",
            "componentName": "",
            "icon": "ep:document",
            "visible": true,
            "keepAlive": true,
            "alwaysShow": true,
            "nameI18n": "return {\n  //简体中文\n  'zh-CN': '备品采购申请',\n  //English\n  'en': '',\n}",
            "children": null
        }
    ]
}


超级管理员 2025-09-22 17:40

@dtbadmin

你后端有没有更新,好像这个get-permission-info没有返回type

回复