feat: 项目打包报错

This commit is contained in:
zhangshaohu 2023-12-07 15:21:28 +08:00
parent 65d27fd191
commit ce093d7071
6 changed files with 12 additions and 9 deletions

View File

@ -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)

View File

@ -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) {

View File

@ -1,4 +1,4 @@
import { Dict } from '@/api/type/common'
import type { Dict } from '@/api/type/common'
interface ViewCardItem {
/**

View File

@ -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)
})
}
}

View File

@ -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)
})
}

View File

@ -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: [