Commit c2ec1a23 authored by shilei's avatar shilei

fix: 修改地图代理配置

parent b9ff905a
......@@ -102,8 +102,9 @@ const props = defineProps<{
containerClass?: string;
}>();
const infoList = ref<any[]>([]);
const { VITE_BASE_USER_URL } = import.meta.env;
(window as any)._AMapSecurityConfig = {
serviceHost: 'http://test.api.liyeyun.com/_AMapService',
serviceHost: `${VITE_BASE_USER_URL}/_AMapService`,
};
const handleSearch = (keyWords: string, radius: Number, type: String) => {
activeTab.value = keyWords;
......
......@@ -18,7 +18,7 @@ app.use(ElementPlus, {
});
app.mount('#app');
const { VITE_BASE_USER_URL } = import.meta.env;
(window as any)._AMapSecurityConfig = {
serviceHost: 'http://test.api.liyeyun.com/_AMapService',
serviceHost: `${VITE_BASE_USER_URL}/_AMapService`,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment