perf: Frontend build error

This commit is contained in:
fit2cloud-chenyw
2025-05-08 09:48:32 +08:00
parent 8384432860
commit 15f7a30120
2 changed files with 15 additions and 5 deletions
+11 -3
View File
@@ -222,9 +222,17 @@ const openDialog = () => {
}
const resetForm = () => {
if (!termFormRef) return
Object.keys(state.form).forEach((key) => {
state.form[key as keyof typeof state.form] = null
})
state.form = {
id: '',
name: '',
type: 0,
api_key: '',
endpoint: '',
max_context_window: 0,
temperature: 0,
status: false,
description: ''
}
}
const closeForm = () => {
+4 -2
View File
@@ -147,6 +147,7 @@ const handleSearch = (e: any) => {
console.log('search', e);
}
const editHandler = (id: any) => {
console.log('editHandler', id)
/* userApi.query(id).then((res: any) => {
console.log('term detail', res)
state.form = res
@@ -154,6 +155,7 @@ const editHandler = (id: any) => {
}) */
}
const deleteHandler = (id: any) => {
console.log('deleteHandler', id)
ElMessageBox.confirm(
'Are you sure to delete?',
'Warning',
@@ -181,9 +183,9 @@ const deleteHandler = (id: any) => {
})
}
const openDialog = () => {
/* const openDialog = () => {
dialogFormVisible.value = true
}
} */
const resetForm = () => {
if (!termFormRef) return
Object.keys(state.form).forEach((key) => {