diff --git a/pages/API/choose-location/choose-location.uvue b/pages/API/choose-location/choose-location.uvue index f2ce1390d4b4dab211074c1aa03c66bcd385a160..0372ee17df7220ed5db53c725bbb014f93014d81 100644 --- a/pages/API/choose-location/choose-location.uvue +++ b/pages/API/choose-location/choose-location.uvue @@ -57,16 +57,16 @@ this.locationName = res.name this.locationAddress = res.address } - } + } as ChooseLocationOptions if (this.hoverLocation) { - chooseLocationOptions['latitude'] = 39.908823 - chooseLocationOptions['longitude'] = 116.39747 + chooseLocationOptions.latitude = 39.908823 + chooseLocationOptions.longitude = 116.39747 } if (this.hoverKeyword) { - chooseLocationOptions['keyword'] = '公园' + chooseLocationOptions.keyword = '公园' } if (this.hoverPayload) { - chooseLocationOptions['payload'] = { + chooseLocationOptions.payload = { token: 'xxx' } }