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