Coder Social home page Coder Social logo

Comments (13)

bulolo avatar bulolo commented on June 12, 2024

实在太多问题了吧。。。把log4js去掉后,还是一堆问题。希望能更新下。

from nest-admin.

liucaptainapp avatar liucaptainapp commented on June 12, 2024

我也是这个问题

from nest-admin.

Lance-Mao avatar Lance-Mao commented on June 12, 2024

这个问题有人知道怎么解决没

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

image
servers/src/common/utils/log.util.ts 删除图片圈中的代码

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

这个问题有人知道怎么解决没

#5 (comment)

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

我也是这个问题

#5 (comment)

from nest-admin.

Lance-Mao avatar Lance-Mao commented on June 12, 2024

image
image
把这块抽出来,能解决这个问题

from nest-admin.

Lance-Mao avatar Lance-Mao commented on June 12, 2024

这个项目权限也没有做好,权限校验还有问题,当初没有仔细看,结果就直接拿来用了,坑太多了

from nest-admin.

Lance-Mao avatar Lance-Mao commented on June 12, 2024

image
能解释下这里为啥需要加localStorage,服务端的jwt过期了,这个好像永远都不会过期,所以服务端过期了,也不会跳到登录页面

from nest-admin.

Lance-Mao avatar Lance-Mao commented on June 12, 2024

image
这三个方法,直接这么写不行吗

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

image
能解释下这里为啥需要加localStorage,服务端的jwt过期了,这个好像永远都不会过期,所以服务端过期了,也不会跳到登录页面

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

image
能解释下这里为啥需要加localStorage,服务端的jwt过期了,这个好像永远都不会过期,所以服务端过期了,也不会跳到登录页面

这个地方使用 cookie 定义一个 首次获取 token 的时间戳,localStorage 存储 token 的具体值

from nest-admin.

wenqiyun avatar wenqiyun commented on June 12, 2024

image
这三个方法,直接这么写不行吗

可以这样写,这边没有这么写是因为,token 比较长 ,存 cookie 每个请求 包含静态图片请求都会带 cookie ,比较耗带宽

from nest-admin.

Related Issues (20)

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.