cool-team-official / cool-admin-midway

🔥 cool-admin(midway版)一个很酷的后台权限管理框架,Ai编码、流程编排、模块化、插件化、CRUD极速开发,永久开源免费,基于midway.js 3.x、typescript、typeorm、mysql、jwt、vue3、vite、element-ui等构建
https://cool-js.com
MIT License
2.65k stars 588 forks source link

ERROR 6908 NotFoundError: /admin/base/sys/department/list Not Found #145

Closed shoppinglink closed 1 year ago

shoppinglink commented 1 year ago

刚拉取的最新版本,系统管理-权限管理-用户列表,组织架构一直在加载中。接口返回{"code":404,"message":"/admin/base/sys/department/list Not Found"} 后台报错:

ERROR 6908 NotFoundError: /admin/base/sys/department/list Not Found
    at notFound (G:\admin-midway\node_modules\@midwayjs\koa\dist\framework.js:94:23)
    at async G:\admin-midway\node_modules\@midwayjs\info\dist\middleware\info.middleware.js:35:24
    at async G:\admin-midway\src\modules\user\middleware\app.ts:58:7
    at async G:\admin-midway\src\modules\base\middleware\log.ts:23:7
    at async G:\admin-midway\src\modules\base\middleware\authority.ts:84:15
    at async G:\admin-midway\node_modules\@midwayjs\i18n\dist\middleware.js:150:17
    at async bodyParser (G:\admin-midway\node_modules\koa-bodyparser\index.js:78:5)
    at async session (G:\admin-midway\node_modules\@midwayjs\session\dist\middleware\session.js:137:17)
    at async G:\admin-midway\node_modules\koa-static-cache\index.js:41:56
    at async G:\admin-midway\node_modules\@midwayjs\core\dist\baseFramework.js:277:40 {
  code: '404',
  cause: undefined,
  status: 404
}
cool-team-official commented 1 year ago

删除前端的 build/cool/dist 重试, 或者清除缓存

shoppinglink commented 1 year ago

我试过清除缓存不能解决,这个方法可以:删除前端的 build/cool/dist(原因是post方法,结果用get请求的方式)。十分感谢!!