added place.latitude and place.longitude, fix routes

This commit is contained in:
sedum
2022-09-19 05:13:57 +02:00
parent 838d1988ad
commit 0fb39b2c07
12 changed files with 168 additions and 118 deletions

View File

@@ -135,7 +135,7 @@ export default {
valid: false,
openImportDialog: false,
event: {
place: { name: '', address: '', details: {} },
place: { name: '', address: '', latitude: null, longitude: null },
title: '',
description: '',
tags: [],
@@ -214,7 +214,8 @@ export default {
}
formData.append('place_name', this.event.place.name)
formData.append('place_address', this.event.place.address)
formData.append('place_details', this.event.place.details)
formData.append('place_latitude', this.event.place.latitude)
formData.append('place_longitude', this.event.place.longitude)
formData.append('description', this.event.description)
formData.append('multidate', !!this.date.multidate)
formData.append('start_datetime', dayjs(this.date.from).unix())