地图定位搜索问题修复
This commit is contained in:
@@ -2,7 +2,7 @@ import {request} from '@/untils/AxiosUtils.js';
|
||||
/*逆地址解析*/
|
||||
export const getcoder = (location, key, get_poi) => {
|
||||
return request({
|
||||
url: '/api/map/ws/geocoder/v1',
|
||||
url: '/qq/map/ws/geocoder/v1',
|
||||
method: 'get',
|
||||
params: {
|
||||
location,
|
||||
@@ -15,7 +15,7 @@ export const getcoder = (location, key, get_poi) => {
|
||||
/*关键词输入提示*/
|
||||
export const querySearch = (keyword, key) => {
|
||||
return request({
|
||||
url: '/api/map/ws/place/v1/suggestion',
|
||||
url: '/qq/map/ws/place/v1/suggestion',
|
||||
method: 'get',
|
||||
params: {
|
||||
keyword,
|
||||
|
||||
@@ -60,7 +60,8 @@
|
||||
return {
|
||||
longitude: 116.40,
|
||||
latitude: 39.90,
|
||||
key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI',
|
||||
// key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI',
|
||||
key: 'MTCBZ-WAAWC-H3M22-AL6XI-G4XN6-YZFK5',
|
||||
currentPoint: {},
|
||||
companyList: [],
|
||||
markList: [],
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
return {
|
||||
searchResultList: [],
|
||||
inputValue: '',
|
||||
key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI'
|
||||
// key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI'
|
||||
key: 'MTCBZ-WAAWC-H3M22-AL6XI-G4XN6-YZFK5'
|
||||
};
|
||||
},
|
||||
onLoad: function(option) {
|
||||
|
||||
@@ -22,12 +22,20 @@ module.exports = {
|
||||
proxy: {
|
||||
'/api': {
|
||||
//本地服务接口地址
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://39.98.184.58:8000',
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/'
|
||||
}
|
||||
}
|
||||
},
|
||||
'/qq/map': {
|
||||
//本地服务接口地址
|
||||
target: 'https://apis.map.qq.com',
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
'^/qq/map': '/'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user