Skip to content

Commit 15f7a30

Browse files
perf: Frontend build error
1 parent 8384432 commit 15f7a30

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

frontend/src/views/system/model/index.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,17 @@ const openDialog = () => {
222222
}
223223
const resetForm = () => {
224224
if (!termFormRef) return
225-
Object.keys(state.form).forEach((key) => {
226-
state.form[key as keyof typeof state.form] = null
227-
})
225+
state.form = {
226+
id: '',
227+
name: '',
228+
type: 0,
229+
api_key: '',
230+
endpoint: '',
231+
max_context_window: 0,
232+
temperature: 0,
233+
status: false,
234+
description: ''
235+
}
228236
}
229237
230238
const closeForm = () => {

frontend/src/views/system/user/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,15 @@ const handleSearch = (e: any) => {
147147
console.log('search', e);
148148
}
149149
const editHandler = (id: any) => {
150+
console.log('editHandler', id)
150151
/* userApi.query(id).then((res: any) => {
151152
console.log('term detail', res)
152153
state.form = res
153154
dialogFormVisible.value = true
154155
}) */
155156
}
156157
const deleteHandler = (id: any) => {
158+
console.log('deleteHandler', id)
157159
ElMessageBox.confirm(
158160
'Are you sure to delete?',
159161
'Warning',
@@ -181,9 +183,9 @@ const deleteHandler = (id: any) => {
181183
})
182184
}
183185
184-
const openDialog = () => {
186+
/* const openDialog = () => {
185187
dialogFormVisible.value = true
186-
}
188+
} */
187189
const resetForm = () => {
188190
if (!termFormRef) return
189191
Object.keys(state.form).forEach((key) => {

0 commit comments

Comments
 (0)