This commit is contained in:
zmj 2024-05-15 11:32:24 +08:00
parent 6b24521afe
commit d9210ac4d8
1 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@
<script lang="ts" setup name="userLists"> <script lang="ts" setup name="userLists">
import { usePaging } from '@/hooks/usePaging' import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions' import { useDictData } from '@/hooks/useDictOptions'
import { apiUserLists, apiUserDelete } from '@/api/user' import { apiUserLists, apiUserDelete, apiUserDetail } from '@/api/user'
import { timeFormat } from '@/utils/util' import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback' import feedback from '@/utils/feedback'
import EditPopup from './edit.vue' import EditPopup from './edit.vue'
@ -119,10 +119,11 @@ const handleAdd = async () => {
// //
const handleEdit = async (data: any) => { const handleEdit = async (data: any) => {
let res = await apiUserDetail({ id: data.id })
showEdit.value = true showEdit.value = true
await nextTick() await nextTick()
editRef.value?.open('edit') editRef.value?.open('edit')
editRef.value?.setFormData(data) editRef.value?.setFormData(res)
} }
// //