File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
frontend/src/views/system Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -222,9 +222,17 @@ const openDialog = () => {
222222}
223223const 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
230238const closeForm = () => {
Original file line number Diff line number Diff line change @@ -147,13 +147,15 @@ const handleSearch = (e: any) => {
147147 console .log (' search' , e );
148148}
149149const 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}
156157const 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+ } */
187189const resetForm = () => {
188190 if (! termFormRef ) return
189191 Object .keys (state .form ).forEach ((key ) => {
You can’t perform that action at this time.
0 commit comments