浏览代码

fix: 搜索限制

lxf 2 周之前
父节点
当前提交
89540e839d
共有 1 个文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      src/components/pageComponents/locationSearch.vue

+ 2 - 0
src/components/pageComponents/locationSearch.vue

@@ -45,6 +45,8 @@ const remoteMethod = async (keyword) => {
         const params = {
             key: MAP_KEY,
             keyword,
+            region: '河北省',
+            region_fix: 1,
             location: props.userLocation,
         };
         await VE_API.old_mini_map.getCtiyList({ word: keyword }).then(({ data }) => {