From 185e11aaef26fe6691e9b3cfa4d300093332e96c Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 18 七月 2024 11:46:09 +0800 Subject: [PATCH] 无权限获取首页两个东西 --- src/api/ai/chat.ts | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/api/ai/chat.ts b/src/api/ai/chat.ts index 6f72b8a..aa7d9f8 100644 --- a/src/api/ai/chat.ts +++ b/src/api/ai/chat.ts @@ -1,5 +1,8 @@ import request from '/@/utils/request'; import { toFormData } from '/@/utils/util'; +const GET_SECTION_SAMPLE_API = '/section/get_section_sample'; +const GET_SECTION_A_LIST_API = '/section/get_section_a_list'; +export const NO_AUTH_API_LIST = [GET_SECTION_SAMPLE_API, GET_SECTION_A_LIST_API]; //#region ====================== knowledge ====================== @@ -108,7 +111,7 @@ */ export const getSectionList = async (req: any = request) => { return req({ - url: '/section/get_section_a_list', + url: GET_SECTION_A_LIST_API, method: 'POST', }); }; @@ -183,7 +186,7 @@ // 鑾峰彇AI瀵硅瘽娴嬭瘯渚嬪瓙鍒楄〃 export const getSelectSample = async (params, req: any = request) => { return req({ - url: '/section/get_section_sample', + url: GET_SECTION_SAMPLE_API, method: 'POST', data: params, headers: { @@ -269,9 +272,9 @@ /** * 鏌ヨ闂杩涘害 - * @param params - * @param req - * @returns + * @param params + * @param req + * @returns */ export const getQuestionProcess = async (params, req: any = request) => { return req({ @@ -294,4 +297,3 @@ }, }); }; - -- Gitblit v1.9.3