mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 项目打包报错
This commit is contained in:
parent
65d27fd191
commit
ce093d7071
|
|
@ -21,7 +21,7 @@ const prefix_provider = '/provider'
|
|||
* @params 参数 name, model_type, model_name
|
||||
*/
|
||||
const getModel: (
|
||||
request: ListModelRequest,
|
||||
request?: ListModelRequest,
|
||||
loading?: Ref<boolean>
|
||||
) => Promise<Result<Array<Model>>> = (data, loading) => {
|
||||
return get(`${prefix}`, data, loading)
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ interface chatType {
|
|||
}
|
||||
|
||||
export class ChatRecordManage {
|
||||
id?: NodeJS.Timer
|
||||
id?: any
|
||||
ms: number
|
||||
chat: chatType
|
||||
is_close?: boolean
|
||||
|
|
@ -54,7 +54,9 @@ export class ChatRecordManage {
|
|||
this.chat.answer_text = this.chat.answer_text + s
|
||||
} else {
|
||||
if (this.is_close) {
|
||||
clearInterval(this.id)
|
||||
if(this.id){
|
||||
clearInterval(this.id)
|
||||
}
|
||||
this.chat.write_ed = true
|
||||
this.write_ed = true
|
||||
if (this.loading) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Dict } from '@/api/type/common'
|
||||
import type { Dict } from '@/api/type/common'
|
||||
|
||||
interface ViewCardItem {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -192,6 +192,7 @@ import type { Provider } from '@/api/type/model'
|
|||
import { realatedObject } from '@/utils/utils'
|
||||
import { MsgSuccess } from '@/utils/message'
|
||||
import useStore from '@/stores'
|
||||
import type Result from '@/request/Result'
|
||||
const { model, dataset, application, user } = useStore()
|
||||
|
||||
const router = useRouter()
|
||||
|
|
@ -297,8 +298,8 @@ function getDataset() {
|
|||
datasetList.value = res.data
|
||||
})
|
||||
} else {
|
||||
dataset.asyncGetAllDateset(datasetLoading).then((res: any) => {
|
||||
datasetList.value = res.data?.filter((v) => v.user_id === user.userInfo?.id)
|
||||
dataset.asyncGetAllDateset(datasetLoading).then((res:any) => {
|
||||
datasetList.value = res.data?.filter((v:any) => v.user_id === user.userInfo?.id)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,8 +129,8 @@ function searchHandle() {
|
|||
getList()
|
||||
}
|
||||
function getAccessToken(id: string) {
|
||||
application.asyncGetAccessToken(id, loading).then((res) => {
|
||||
window.open(application.location + res?.data?.access_token)
|
||||
application.asyncGetAccessToken(id, loading).then((res:any) => {
|
||||
window.open(application.location + res?.data?.access_token)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ const SelectRemoteRef = ref()
|
|||
const addMemberFormRef = ref<FormInstance>()
|
||||
|
||||
const loading = ref<boolean>(false)
|
||||
const userOptions = ref([])
|
||||
const userOptions = ref<Array<any>>([])
|
||||
|
||||
const rules = ref<FormRules>({
|
||||
users: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue