> TplayPro的前端加入了路由功能,因此,你访问的路径必须在系统里“备案”才能正确访问,不然就会404哈 > 找到并打开/public/admin/api/rutes.json ~~~ { "data":[ { "path": "/", "component": "views/app.html", "name": "控制面板" }, { "path": "/admin/editPwd", "component": "views/admin/editPwd.html", "name": "修改密码" }, { "path": "/admin/index", "component": "views/admin/index.html", "name": "管理员" }, { "path": "/admin/add", "component": "views/admin/add.html", "name": "新增管理员" }, { "path": "/admin/edit", "component": "views/admin/edit.html", "name": "更改管理员" }, { "path": "/admin/addGroup", "component": "views/admin/addGroup.html", "name": "新增权限组" }, { "path": "/admin/editGroup", "component": "views/admin/editGroup.html", "name": "更改权限组" }, { "path": "/recycling/index", "component": "views/recycling/index.html", "name": "回收站" }, { "path": "/system/system", "component": "views/system/system.html", "name": "系统配置" }, { "path": "/system/addSystem", "component": "views/system/addSystem.html", "name": "新增系统配置" }, { "path": "/system/rule", "component": "views/system/rule.html", "name": "权限节点" }, { "path": "/system/addRule", "component": "views/system/addRule.html", "name": "新增权限节点" }, { "path": "/portal/menu", "component": "views/portal/menu.html", "name": "门户菜单" }, { "path": "/portal/addMenu", "component": "views/portal/addMenu.html", "name": "新增菜单" }, { "path": "/portal/addMenuCate", "component": "views/portal/addMenuCate.html", "name": "新增菜单组" }, { "path": "/portal/carousel", "component": "views/portal/carousel.html", "name": "轮播" }, { "path": "/portal/addCarousel", "component": "views/portal/addCarousel.html", "name": "新增轮播" }, { "path": "/portal/addCarouselCate", "component": "views/portal/addCarouselCate.html", "name": "新增轮播组" }, { "path": "/portal/contentCate", "component": "views/portal/contentCate.html", "name": "分类管理" }, { "path": "/portal/addContentCate", "component": "views/portal/addContentCate.html", "name": "新增分类" }, { "path": "/portal/addContentCateGroup", "component": "views/portal/addContentCateGroup.html", "name": "新增分类组" }, { "path": "/portal/content", "component": "views/portal/content.html", "name": "文章/商品" }, { "path": "/portal/addContent", "component": "views/portal/addContent.html", "name": "新增文章/商品" }, { "path": "/portal/editContent", "component": "views/portal/editContent.html", "name": "修改文章/商品" }, { "path": "/user/index", "component": "views/user/index.html", "name": "前台用户" }, { "path": "/user/message", "component": "views/user/message.html", "name": "评论/留言" }] } ~~~ 以上就是系统默认的所有路由配置了,当你需要访问views目录下的某一个模板文件时,就需要在此添加一条记录,比如你的访问路径是views下的tplay文件夹下的index.html,那你就需要添加这样一条记录: ~~~ { "path": "/tplay/index", "component": "views/tplay/index.html", "name": "******" } ~~~