Giter Club home page Giter Club logo

Comments (9)

yuzd avatar yuzd commented on July 28, 2024

你是我的项目拉下来直接跑就有这样的问题,还是你改造后出现的?

from antmgr.

wfjohnny avatar wfjohnny commented on July 28, 2024

没有改造,在增加功能的时候创建了一个新用户以后测试出来的,原有的底层这块没改动过

from antmgr.

yuzd avatar yuzd commented on July 28, 2024

我刚刚对照着我写的wiki
https://github.com/yuzd/AntMgr/wiki/1.%E5%BC%80%E5%8F%91%E4%B8%80%E4%B8%AA%E5%85%B7%E4%BD%93%E6%9D%83%E9%99%90%E6%8E%A7%E5%88%B6%E7%9A%84helloworld%E9%A1%B5%E9%9D%A2
测试了一遍 没有问题。

from antmgr.

yuzd avatar yuzd commented on July 28, 2024

image

from antmgr.

wfjohnny avatar wfjohnny commented on July 28, 2024

我是在用户登录的时候出现的这个问题,不是在我新增的功能里出现的,加上了 [AuthorizeFilter]标签就会一直循环returnUrl这个参数,我目前的状况就是新增了一个用户配置好权限,然后用这个用户登录,点击登录以后就又跳到登录页面。在debug的时候发现新增的这个用户cookie是没有写入到浏览器里的,在拦截器里会拦截掉,然后又跳到登录页面

from antmgr.

wfjohnny avatar wfjohnny commented on July 28, 2024

image
image
这是我用上帝模式的用户和新增的一个用户调用登录接口返回到前端的时候的截图

from antmgr.

yuzd avatar yuzd commented on July 28, 2024

那肯定是你没有按照wiki给这个用户配置角色吧?
你根据wiki来的嘛?

from antmgr.

wfjohnny avatar wfjohnny commented on July 28, 2024

是按照wiki上的步骤添加的,前端按钮有添加约定的action-id,action-name,display:none后端的controller有添加标签AuthorizeFilter,还是没有cookie,ready:function(){ auth();}这个段也有

from antmgr.

yuzd avatar yuzd commented on July 28, 2024

有空你家我qq 1877682825

from antmgr.

Related Issues (10)

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.