feat: 知识库树形视图(按来源分组),左侧树导航+右侧列表联动
This commit is contained in:
@@ -44,6 +44,14 @@ const knowledgeService = {
|
||||
const resp = await http.get('/knowledge/sources')
|
||||
return resp.data
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取按来源分组的树形结构(含「全部」根节点)
|
||||
*/
|
||||
async getGroupedItems() {
|
||||
const resp = await http.get('/knowledge/grouped')
|
||||
return resp.data
|
||||
},
|
||||
}
|
||||
|
||||
export default knowledgeService
|
||||
Reference in New Issue
Block a user