💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
在 application\common\controller\Backend.php ``` //渲染权限对象 $this\->assign('auth', $this\->auth); ``` 把auth类渲染给模板文件了 然后在模板文件中要进行鉴权时,可以直接调用auth类: ```  {if condition = "$auth->check('intellect/user/user/profile')"}  <span class="edit-text" @click="operation('profile',scope.row.id)">查看详情</span>   {/if} ``` 通过判断是否具有对应的权限,从而决定是否显示相应的内容