24

前后端分离下前端权限处理

 4 years ago
source link: https://juejin.im/post/5dda9fec6fb9a07acd55c140
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
权限在我看来指的是某个用户是否能够访问某个接口。对应到前端,即使某个用户访问了一个本不应该让他看到的页面,在访问接口时不具备权限,这样即使进入了页面,也不能看到相应的数据。但是我们前端要做的工作就是让用户在访问这个页面的时候,直接就收到提示,没有权限。 但现在

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK