在js中直接使用shiro标签是不行的
比如
下面有个小技巧
springboot下html的js中使用shiro标签功能
原文:https://www.cnblogs.com/xiaostudy/p/10995294.html