Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按钮权限问题 #91

Closed
guohh18 opened this issue Jun 20, 2023 · 6 comments
Closed

按钮权限问题 #91

guohh18 opened this issue Jun 20, 2023 · 6 comments

Comments

@guohh18
Copy link

guohh18 commented Jun 20, 2023

部署服务后,使用jsh账号访问,只有查看数据的权限,各种新增修改按钮都没有,数据库jsh_user_business表的btn_str都是空的,使用注册功能新注册的号也是只有查看权限,这个权限要在哪里配置啊,看了后端的注册接口registerUser,插入表数据时也没有看到设置btnStr

image
image

@guohh18
Copy link
Author

guohh18 commented Jun 20, 2023

image

没有新增按钮,批量操作下拉选项也是空的

@jishenghua
Copy link
Owner

jishenghua commented Jun 22, 2023 via email

@guohh18
Copy link
Author

guohh18 commented Jun 22, 2023

因为我的服务器上部署了很多自己练手的乱七八糟小项目,怕冲突就把这个项目打成镜像部署到Docker里了,这个按钮权限和部署位置有关吗,我看登录接口代码,是读取的jsh_user_business表数据,但是没找到插入数据的地方

@jishenghua
Copy link
Owner

jishenghua commented Jun 22, 2023 via email

@guohh18
Copy link
Author

guohh18 commented Jun 27, 2023

已解决,问题原因是我在主机上的nginx通过/erp代理请求到容器的nginx,URL多了一个/erp,判断当前页面权限的那段代码里会根据当前页面的URL和接口返回的的对比,不一致就有问题,判断前把/erp截取掉就好了。
image

@guohh18 guohh18 closed this as completed Jun 27, 2023
@jishenghua
Copy link
Owner

jishenghua commented Jun 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants