|
|
@ -442,14 +442,10 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share |
|
|
|
async function handlePreFillForm() { |
|
|
|
async function handlePreFillForm() { |
|
|
|
if (Object.keys(route.query || {}).length) { |
|
|
|
if (Object.keys(route.query || {}).length) { |
|
|
|
// Decode query parameter keys
|
|
|
|
// Decode query parameter keys
|
|
|
|
const decodedQuery = Object.fromEntries(Object.entries(route.query).map(([key, value]) => [decodeURIComponent(key), value])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
columns.value = await Promise.all( |
|
|
|
columns.value = await Promise.all( |
|
|
|
(columns.value || []).map(async (c) => { |
|
|
|
(columns.value || []).map(async (c) => { |
|
|
|
const queryParam = |
|
|
|
const queryParam = route.query[c.title as string] || route.query[encodeURIComponent(c.title as string)] |
|
|
|
route.query[c.title as string] || |
|
|
|
|
|
|
|
route.query[encodeURIComponent(c.title as string)] || |
|
|
|
|
|
|
|
decodedQuery[c.title as string] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
!c.title || |
|
|
|
!c.title || |
|
|
|