fix: 修复未登录无法使用联网插件

This commit is contained in:
ageerle
2025-03-13 09:43:53 +08:00
parent 15fd124da3
commit f91ea8c1ca
3 changed files with 29 additions and 22 deletions

View File

@@ -106,7 +106,7 @@ public class KnowledgeController extends BaseController {
@GetMapping("/list")
public TableDataInfo<KnowledgeInfoVo> list(KnowledgeInfoBo bo, PageQuery pageQuery) {
if(!StpUtil.isLogin()){
throw new SecurityException("请先去登录!");
return null;
}
bo.setUid(LoginHelper.getUserId());
return knowledgeInfoService.queryPageList(bo, pageQuery);