From c8518b7789a41ff67bed3bd536a354dbc82bcfb1 Mon Sep 17 00:00:00 2001 From: Redon <790348264@qq.com> Date: Thu, 16 Feb 2023 11:38:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81=20(#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 2 -- src/store/modules/app/index.ts | 3 --- src/utils/is/index.ts | 2 +- src/utils/request/index.ts | 4 ---- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 4f997d1..47fafd2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,8 +1,6 @@ import type { GenericAbortSignal } from 'axios' import { post } from '@/utils/request' -export const controller = new AbortController() - export function fetchChatAPI( prompt: string, options?: { conversationId?: string; parentMessageId?: string }, diff --git a/src/store/modules/app/index.ts b/src/store/modules/app/index.ts index bbe2829..11ad170 100644 --- a/src/store/modules/app/index.ts +++ b/src/store/modules/app/index.ts @@ -9,8 +9,5 @@ export const useAppStore = defineStore('app-store', { this.siderCollapsed = collapsed setLocalSetting(this.$state) }, - toggleSiderCollapse() { - this.setSiderCollapsed(!this.siderCollapsed) - }, }, }) diff --git a/src/utils/is/index.ts b/src/utils/is/index.ts index fd05cd3..27a8230 100644 --- a/src/utils/is/index.ts +++ b/src/utils/is/index.ts @@ -14,7 +14,7 @@ export function isNull(value: T | unknown): value is null { return Object.prototype.toString.call(value) === '[object Null]' } -export function isUndefine(value: T | unknown): value is undefined { +export function isUndefined(value: T | unknown): value is undefined { return Object.prototype.toString.call(value) === '[object Undefined]' } diff --git a/src/utils/request/index.ts b/src/utils/request/index.ts index 2251233..bcce94f 100644 --- a/src/utils/request/index.ts +++ b/src/utils/request/index.ts @@ -11,10 +11,6 @@ export interface HttpOption { afterRequest?: () => void } -export interface ExtraOption { - notification?: boolean -} - export interface Response { data: T message: string | null