|
@@ -42,7 +42,7 @@ const open = async (item: object) => {
|
|
|
const { push } = useRouter()
|
|
|
const handleDetail = () => {
|
|
|
dialogVisible.value = false
|
|
|
- if (info.value?.userType === '1') push({ name: 'EnterpriseDetail', params: { id: info.value?.enterpriseId } })
|
|
|
+ if (info.value?.userType === '1' && info.value?.enterprise) push({ name: 'EnterpriseDetail', params: { id: info.value?.enterpriseId } })
|
|
|
else push({ name: 'PersonDetail', query: { id: info.value?.person?.id, userId: info.value?.userId } })
|
|
|
}
|
|
|
|