GithubHelp home page GithubHelp logo

wenqiyun / nest-admin Goto Github PK

View Code? Open in Web Editor NEW
549.0 549.0 95.0 3.75 MB

采用nestjs typeorm vue开发的一套权限管理系统

License: MIT License

HTML 0.10% TypeScript 99.38% Dockerfile 0.10% JavaScript 0.29% Shell 0.14%
nestjs typeorm typescript vue vue-element-admin

nest-admin's People

Contributors

chunshand avatar dependabot[bot] avatar tangjinjian avatar wenqiyun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nest-admin's Issues

redis报错

image
跑不起来,具体看图片
提示是错误是类型问题

运行不起来 去掉 redis.util.ts 可以跑起来

运行不起来 去掉 redis.util.ts 可以跑起来 报错如下

 src/common/utils/redis.util.ts:83:45 - error TS2769: No overload matches this call.
   Overload 1 of 6, '(key: KeyType, data: Map<string, ValueType> | ValueType[] | { [key: string]: ValueType; }): Promise<"OK">', gave the following error.
     Argument of type 'object | Map<string, string>' is not assignable to parameter of type 'Map<string, ValueType> | ValueType[] | { [key: string]: ValueType; }'.
       Type 'object' is not assignable to type 'Map<string, ValueType> | ValueType[] | { [key: string]: ValueType; }'.
         Type 'object' is not assignable to type '{ [key: string]: ValueType; }'.
           Index signature is missing in type '{}'.
   Overload 2 of 6, '(key: KeyType, ...args: ValueType[]): Promise<"OK">', gave the following error.
     Argument of type 'object | Map<string, string>' is not assignable to parameter of type 'ValueType'.
       Type 'object' is not assignable to type 'ValueType'.
         Type '{}' is missing the following properties from type 'Buffer': write, toJSON, equals, compare, and 78 more.

 83         return await this.client.hmset(key, data)

If ModuleRef is a provider, is it part of the current RedisCoreModule?

nestjs-redis的仓库是不是更新了代码?首先是pnpm无法下载,然后直接下载nestjs-redis后,发现无法使用,报这个错:
If ModuleRef is a provider, is it part of the current RedisCoreModule?
这个错我在redisCoreModule里面不知道如何修改呀。
`- If ModuleRef is a provider, is it part of the current RedisCoreModule?

  • If ModuleRef is exported from a separate @module, is that module imported within RedisCoreModule?
    @module({
    imports: [ /* the Module containing ModuleRef */ ]
    })`
    请问这个该如何解决?

nestjs-redis的仓库是不是更新了代码?首先是pnpm无法下载,然后直接下载nestjs-redis后,发现无法使用,报这个错:
If ModuleRef is a provider, is it part of the current RedisCoreModule?
这个错我在redisCoreModule里面不知道如何修改呀。
`- If ModuleRef is a provider, is it part of the current RedisCoreModule?

  • If ModuleRef is exported from a separate @module, is that module imported within RedisCoreModule?
    @module({
    imports: [ /* the Module containing ModuleRef */ ]
    })`
    请问这个该如何解决?

登陆账号报密码错误

输入了admin/admin,报密码错误。const checkPassword = await compare(password, user.password) 这个返回了false,代码分支是v2那个

辛苦作者了,跟了一遍,发现了一些小bug

前端代码

  1. 登录后,复制网址,新开tab,会再次要求登录,我看代码是用sessionStorage存储的,不知道是不是有什么特别的想法
  2. 两个项目的eslint好像都有些问题,不过能用
  3. 上传功能似乎没有推代码
  4. 用户权限管理Edit那里列表似乎应该用allMenu
  5. perm.ts:27左右的白名单校验规则似乎要全匹配,所以带参数的也无法通过

后端代码

  1. 部分Service中的getManager写法已经deprecated了,我这里遇到了报错,改成对应的dataSource.manager就行了

很不错的demo,我新人,拿来学习学习nestjs挺好的,感谢作者

[11:55:08 PM] ERROR failed to load config from /home/roky/Downloads/nest-admin/client/vite.config.ts

[11:55:08 PM] ERROR failed to load config from /home/roky/Downloads/nest-admin/client/vite.config.ts

ERROR error when starting dev server: 11:55:08 PM
TypeError: (0 , import_vite_plugin_svg_icons.createSvgIconsPlugin) is not a function
at /home/roky/Downloads/nest-admin/client/vite.config.ts:55:61

ubuntu 22.04
node 18.0
npm run dev时报错!

查询是vite_plugin_svg_icons版本太低,如何修改?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.