Commit f8d33e4f by 李伟康

修改输入提示回调

1 parent e47b6d52
......@@ -191,11 +191,11 @@ class GlMapApi {
*/
async keywordSearch(keywords, location) {
try {
const { route } = await this.request.get('/v3/assistant/inputtips', {
const { tips } = await this.request.get('/v3/assistant/inputtips', {
keywords,
location: JSON.parse(JSON.stringify(location)).reverse().join(',')
})
return Promise.resolve(route)
return Promise.resolve(tips)
} catch (error) {
return Promise.reject(error)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!