fix: minor bug
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
78299e0df6
commit
930265d790
|
@ -60,7 +60,7 @@ onMounted(async () => {
|
||||||
} else if (route.query?.table) {
|
} else if (route.query?.table) {
|
||||||
const query = route.query?.table;
|
const query = route.query?.table;
|
||||||
const clientId = +JSON.parse(query)?.clientFk;
|
const clientId = +JSON.parse(query)?.clientFk;
|
||||||
await onClientSelected({ clientId });
|
if (clientId) await onClientSelected({ clientId });
|
||||||
}
|
}
|
||||||
if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value;
|
if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value;
|
||||||
});
|
});
|
||||||
|
@ -287,7 +287,7 @@ watch(
|
||||||
async (newValue) => {
|
async (newValue) => {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
const clientId = +JSON.parse(newValue)?.clientFk;
|
const clientId = +JSON.parse(newValue)?.clientFk;
|
||||||
await onClientSelected({ clientId });
|
if (clientId) await onClientSelected({ clientId });
|
||||||
if (tableRef.value)
|
if (tableRef.value)
|
||||||
tableRef.value.create.formInitialData = formInitialData.value;
|
tableRef.value.create.formInitialData = formInitialData.value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue