|
|
@ -441,8 +441,6 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
columns.value = await Promise.all( |
|
|
|
columns.value = await Promise.all( |
|
|
|
(columns.value || []).map(async (c) => { |
|
|
|
(columns.value || []).map(async (c) => { |
|
|
|
const queryParam = route.query[c.title as string] || route.query[encodeURIComponent(c.title as string)] |
|
|
|
const queryParam = route.query[c.title as string] || route.query[encodeURIComponent(c.title as string)] |
|
|
@ -458,7 +456,6 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share |
|
|
|
) { |
|
|
|
) { |
|
|
|
return c |
|
|
|
return c |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const decodedQueryParam = Array.isArray(queryParam) |
|
|
|
const decodedQueryParam = Array.isArray(queryParam) |
|
|
|
? queryParam.map((qp) => decodeURIComponent(qp as string).trim()) |
|
|
|
? queryParam.map((qp) => decodeURIComponent(qp as string).trim()) |
|
|
|
: decodeURIComponent(queryParam as string).trim() |
|
|
|
: decodeURIComponent(queryParam as string).trim() |
|
|
|