|
@@ -224,23 +224,23 @@ const toChang = async (name) => {
|
|
|
if ($checkRes(result)) form.value = result.data
|
|
|
} else {
|
|
|
if (name == 'Expert') {
|
|
|
- result = await expertStore.query({ user: form.value.id })
|
|
|
+ result = await expertStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Company') {
|
|
|
- result = await companyStore.query({ user: form.value.id })
|
|
|
+ result = await companyStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Unit') {
|
|
|
- result = await unitStore.query({ user: form.value.id })
|
|
|
+ result = await unitStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Association') {
|
|
|
- result = await associationStore.query({ user: form.value.id })
|
|
|
+ result = await associationStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Competition') {
|
|
|
- result = await competitionStore.query({ user: form.value.id })
|
|
|
+ result = await competitionStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Incubator') {
|
|
|
- result = await incubatorStore.query({ user: form.value.id })
|
|
|
+ result = await incubatorStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'Investment') {
|
|
|
- result = await investmentStore.query({ user: form.value.id })
|
|
|
+ result = await investmentStore.query({ user: form.value.user || form.value.id })
|
|
|
} else if (name == 'State') {
|
|
|
- result = await stateStore.query({ user: form.value.id })
|
|
|
+ result = await stateStore.query({ user: form.value.user || form.value.id })
|
|
|
}
|
|
|
- if ($checkRes(result)) form.value = result.data[0] || { user: form.value.id }
|
|
|
+ if ($checkRes(result)) form.value = result.data[0] || { user: form.value.user || form.value.id }
|
|
|
}
|
|
|
}
|
|
|
const onSubmit = async () => {
|