Preserve the locator model
This makes it possible to move back-and-forth in the compliance process and still retain data.
This commit is contained in:
parent
dbc5db9727
commit
d3662b8240
6 changed files with 127 additions and 81 deletions
|
|
@ -488,7 +488,23 @@ const formElement = ref<HTMLFormElement | null>(null);
|
|||
const images = ref<Image[]>([]);
|
||||
const isSubmitting = ref(false);
|
||||
const locationStore = useLocationStore();
|
||||
const locator = ref<Locator | null>(null);
|
||||
const locator = ref<Locator>({
|
||||
address: {
|
||||
country: "",
|
||||
gid: "",
|
||||
locality: "",
|
||||
number: "",
|
||||
postal_code: "",
|
||||
raw: "",
|
||||
region: "",
|
||||
street: "",
|
||||
unit: "",
|
||||
},
|
||||
location: {
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
},
|
||||
});
|
||||
|
||||
const showMore = ref<boolean>(false);
|
||||
const storePublicReport = useStorePublicReport();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue