19

前后端分离的项目,如何前端界面如何实现权限控制?

 4 years ago
source link: https://www.v2ex.com/t/638153
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.
neoserver,ios ssh client
PHP - @frozenway - 以前 php 和 html 混合的代码,可以通过 php 权限控制函数来实现,但是前后端分离后,前端只通过 api 接口来获取数据,想来想去,每个页面几个功能,每个都调用一次 api 来确认一下是否有

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK