Commit 27d283fa authored by youjie's avatar youjie

no message

parent a37e1465
......@@ -246,7 +246,7 @@ const params = reactive({
Name: '',
})
const showType = ref('' as null)
const showType = ref(null)
const dataList = ref([])
const initPullDown = () =>{
......@@ -288,21 +288,18 @@ const clickItem = (item: any,type: number = 1) => {
formData.name = item.name || ''
formData.surName = item.surName || ''
formData.birthday = item.birthday || null
formData.isReceivePush = item.isReceivePush || null
formData.lineId = item.lineId || null
formData.phone = item.phone || null
formData.phoneCode = item.phoneCode || null
formData.photo = item.photo || null
formData.countryId = item.countryId || null
formData.sex = item.sex || null
formData.idCard = item.idCard || null
}else{
deleteItem(item)
}
}
const deleteItem = async (item: any) => {
if(!item.id){
Message.warning(t('personal.placeholderDelete'))
return
}
loading.value = true
try {
const response = await UserService.deleteMemberGuest(systemConfig.tenantId || 'default',item.id)
......@@ -359,6 +356,7 @@ const handleSubmit = async () => {
const response = await UserService.updateMemberGuest(formData.tenantId || 'default',registerData)
console.log(response,'========------')
if (response) {
showType.value = null
loadData()
}
} catch (error: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment