diff --git a/apps/web-antd/src/api/core/chatflow.ts b/apps/web-antd/src/api/core/chatflow.ts index 239b8bd..bfec8e1 100644 --- a/apps/web-antd/src/api/core/chatflow.ts +++ b/apps/web-antd/src/api/core/chatflow.ts @@ -24,15 +24,21 @@ export namespace ChatflowApi { } export interface ChatListResult { - id: string; - name: string; - inputs: { - [key: string]: any; - }; - status: string; - introduction: string; - createAt: string; - updatedAt: string; + data: [ + { + createAt: string; + id: string; + inputs: { + [key: string]: any; + }; + introduction: string; + name: string; + status: string; + updatedAt: string; + }, + ]; + hasMore: boolean; + limit: number; } } @@ -51,7 +57,7 @@ export async function getChatList( const url = params.appid ? `/v1/chat/conversations/${params.appid}` : '/v1/chat/conversations/'; - return requestClient.request(url, { + return requestClient.request(url, { data, method: 'POST', }); diff --git a/apps/web-antd/src/api/core/server.ts b/apps/web-antd/src/api/core/server.ts index 162b14a..7d7520c 100644 --- a/apps/web-antd/src/api/core/server.ts +++ b/apps/web-antd/src/api/core/server.ts @@ -1,5 +1,3 @@ -import type { SpiderItem } from '@vben/common-ui'; - import { requestClient } from '#/api/request'; export namespace RepositoryApi { @@ -9,9 +7,9 @@ export namespace RepositoryApi { } } -export async function getAppList(params: RepositoryApi.AppListParams) { - return requestClient.get(`/v1/server/apps`, { params }); -} +export const getAppList = (params: RepositoryApi.AppListParams) => { + return requestClient.get(`/v1/server/apps`, { params }); +}; // export const getAppDetail = (id) => { // return requestClient.get(`/v1/server/${id}`) diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index 116d6b1..8b83178 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -51,7 +51,7 @@ export const useAuthStore = defineStore('auth', () => { realName: user.username, username: user.username, roles: [user.role.name], - homePath: '/home', + homePath: '/analytics', token: csrf.token, }; accessStore.setAccessToken(csrf.token); @@ -114,7 +114,7 @@ export const useAuthStore = defineStore('auth', () => { realName: user.username, username: user.username, roles: [user.role.name], - homePath: '/home', + homePath: '/analytics', token: csrf.token, }; userStore.setUserInfo(userInfo); diff --git a/apps/web-antd/src/views/ppt/index.vue b/apps/web-antd/src/views/ppt/index.vue index 2120508..1dcad5b 100644 --- a/apps/web-antd/src/views/ppt/index.vue +++ b/apps/web-antd/src/views/ppt/index.vue @@ -1,4 +1,4 @@ -