mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-20 19:39:40 +00:00
chore: 删除未使用代码 (#37)
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import type { GenericAbortSignal } from 'axios'
|
import type { GenericAbortSignal } from 'axios'
|
||||||
import { post } from '@/utils/request'
|
import { post } from '@/utils/request'
|
||||||
|
|
||||||
export const controller = new AbortController()
|
|
||||||
|
|
||||||
export function fetchChatAPI<T = any>(
|
export function fetchChatAPI<T = any>(
|
||||||
prompt: string,
|
prompt: string,
|
||||||
options?: { conversationId?: string; parentMessageId?: string },
|
options?: { conversationId?: string; parentMessageId?: string },
|
||||||
|
@@ -9,8 +9,5 @@ export const useAppStore = defineStore('app-store', {
|
|||||||
this.siderCollapsed = collapsed
|
this.siderCollapsed = collapsed
|
||||||
setLocalSetting(this.$state)
|
setLocalSetting(this.$state)
|
||||||
},
|
},
|
||||||
toggleSiderCollapse() {
|
|
||||||
this.setSiderCollapsed(!this.siderCollapsed)
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@@ -14,7 +14,7 @@ export function isNull<T extends null>(value: T | unknown): value is null {
|
|||||||
return Object.prototype.toString.call(value) === '[object Null]'
|
return Object.prototype.toString.call(value) === '[object Null]'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isUndefine<T extends undefined>(value: T | unknown): value is undefined {
|
export function isUndefined<T extends undefined>(value: T | unknown): value is undefined {
|
||||||
return Object.prototype.toString.call(value) === '[object Undefined]'
|
return Object.prototype.toString.call(value) === '[object Undefined]'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,10 +11,6 @@ export interface HttpOption {
|
|||||||
afterRequest?: () => void
|
afterRequest?: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExtraOption {
|
|
||||||
notification?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Response<T = any> {
|
export interface Response<T = any> {
|
||||||
data: T
|
data: T
|
||||||
message: string | null
|
message: string | null
|
||||||
|
Reference in New Issue
Block a user