mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
perf: Frontend build error
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user