为什么我新下载回来包,左侧菜单是空白??

提问 未结
3 119
DoubleF
DoubleF 25天前
悬赏:20飞吻
版本:pear-admin-layui V 3.8.5 浏览器:chrome
为什么我新下载回来包,左侧菜单是空白??
回帖
  • @DoubleF 需要运行在 Hbuilder 或 相关 WEB 环境中,否则会出现该问题
    0 回复
  • DoubleF
    DoubleF (楼主)
    25天前
    @PearAdmin 本地运行环境,根目录访问,报以下的错 layui.js:1 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in [{ "id": 1, "title": "私信", "children": [{ "id": 11, "avatar":"admin/images/avatar.jpg", "title": "收到一条私人消息", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 12, "avatar":"admin/images/avatar.jpg", "title": "收到一条私人消息", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }] }, { "id": 2, "title": "消息", "children": [{ "id": 11, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 12, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 11, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 12, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 11, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 12, "avatar":"admin/images/avatar.jpg", "title": "收到一条紧急任务", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }] }, { "id": 3, "title": "通知", "children": [{ "id": 11, "avatar":"admin/images/avatar.jpg", "title": "收到一条警告通知", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }, { "id": 12, "avatar":"admin/images/avatar.jpg", "title": "收到一条警告通知", "context": "这是消息内容。", "form": "就眠仪式", "time": "2019-02-15" }] } ] at n (layui.js:1) at Function.each (layui.js:1) at createHtml (message.js?v=3.8.0.Release:63) at message.render (message.js?v=3.8.0.Release:22) at Object.messageRender (admin.js?v=3.8.0.Release:80) at applyConfig (admin.js?v=3.8.0.Release:440) at Object.render (admin.js?v=3.8.0.Release:52) at r.<anonymous> ((index):95) at HTMLDocument.<anonymous> (layui.js:1) at l (layui.js:2)
    0 回复
  • 项目需要发布为 http 服务,菜单空白是因为资源访问的问题,检查 network 会发现有个别资源的访问发生错误
    0 回复