添加路由
在开发的模块 config/routers.js 文件中配置新建功能页面的访问路径:
// 客户端
{
    path: "/hiam/client",  // 路由
    component: "Client",  // 页面组件
    authorized: true,  // 未配置菜单时,配置权限得以访问页面。在完成开发后删除此属性。
    models: [  // model数据模型
      "client", 
    ],
  },
配置好路由之后 ,访问:
http://localhost:8000/hiam/client,页面不再是404