mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 23:46:52 +08:00
Features: Memory page rendering and other bug fixes (#11784)
### What problem does this PR solve? Features: Memory page rendering and other bug fixes - Rendering of the Memory list page - Rendering of the message list page in Memory - Fixed an issue where the empty state was incorrectly displayed when search criteria were applied - Added a web link for the API-Key - modifying the index_mode attribute of the Confluence data source. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
43
web/src/services/memory-service.ts
Normal file
43
web/src/services/memory-service.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import api from '@/utils/api';
|
||||
import { registerNextServer } from '@/utils/register-server';
|
||||
import request from '@/utils/request';
|
||||
|
||||
const {
|
||||
createMemory,
|
||||
getMemoryList,
|
||||
deleteMemory,
|
||||
getMemoryDetail,
|
||||
updateMemorySetting,
|
||||
// getMemoryDetailShare,
|
||||
} = api;
|
||||
const methods = {
|
||||
createMemory: {
|
||||
url: createMemory,
|
||||
method: 'post',
|
||||
},
|
||||
getMemoryList: {
|
||||
url: getMemoryList,
|
||||
method: 'post',
|
||||
},
|
||||
deleteMemory: { url: deleteMemory, method: 'post' },
|
||||
// getMemoryDetail: {
|
||||
// url: getMemoryDetail,
|
||||
// method: 'get',
|
||||
// },
|
||||
// updateMemorySetting: {
|
||||
// url: updateMemorySetting,
|
||||
// method: 'post',
|
||||
// },
|
||||
// getMemoryDetailShare: {
|
||||
// url: getMemoryDetailShare,
|
||||
// method: 'get',
|
||||
// },
|
||||
} as const;
|
||||
const memoryService = registerNextServer<keyof typeof methods>(methods);
|
||||
export const updateMemoryById = (id: string, data: any) => {
|
||||
return request.post(updateMemorySetting(id), { data });
|
||||
};
|
||||
export const getMemoryDetailById = (id: string, data: any) => {
|
||||
return request.post(getMemoryDetail(id), { data });
|
||||
};
|
||||
export default memoryService;
|
||||
@ -1,6 +1,5 @@
|
||||
import api from '@/utils/api';
|
||||
import registerServer from '@/utils/register-server';
|
||||
import request from '@/utils/request';
|
||||
import { registerNextServer } from '@/utils/register-server';
|
||||
|
||||
const {
|
||||
createSearch,
|
||||
@ -49,6 +48,6 @@ const methods = {
|
||||
method: 'get',
|
||||
},
|
||||
} as const;
|
||||
const searchService = registerServer<keyof typeof methods>(methods, request);
|
||||
const searchService = registerNextServer<keyof typeof methods>(methods);
|
||||
|
||||
export default searchService;
|
||||
|
||||
Reference in New Issue
Block a user