diff --git a/src/components/MapboxMaps/InsertShp/index.vue b/src/components/MapboxMaps/InsertShp/index.vue index d7b0cd40..6a93217b 100644 --- a/src/components/MapboxMaps/InsertShp/index.vue +++ b/src/components/MapboxMaps/InsertShp/index.vue @@ -510,7 +510,7 @@ const handlerCustomRequest = (options)=>{ } const handlerUploadFile = ()=>{ - let url = "http://192.168.10.102:9500/api/Files/Upload" + let url = "" const [proxyFile] = fileList.value let file = proxyFile.originFileObj diff --git a/src/components/MapboxMaps/Modal/ServeResource/index.vue b/src/components/MapboxMaps/Modal/ServeResource/index.vue index 75d5a6b3..4804fb08 100644 --- a/src/components/MapboxMaps/Modal/ServeResource/index.vue +++ b/src/components/MapboxMaps/Modal/ServeResource/index.vue @@ -197,7 +197,6 @@ const handlerEditLayer = (item) => { // break; // } // layerJson.source.tiles = [ - // `http://192.168.10.102:9023/api/DroneCaseinfo/QueryVectorTileByTable?z={z}&x={x}&y={y}&table=${currentLayer.value?.relationTable}&field=\"gid\",` // ] layerJson.state = { attributeField:currentLayer.value?.attributeField, diff --git a/src/components/Upload/src/components/img_pre.vue b/src/components/Upload/src/components/img_pre.vue index b0a69056..42c80e87 100644 --- a/src/components/Upload/src/components/img_pre.vue +++ b/src/components/Upload/src/components/img_pre.vue @@ -1,6 +1,6 @@ @@ -87,7 +87,7 @@ v-if="imageItem" width="100px" height="100px" - :src="`http://192.168.10.102:9023/${imageItem}`" + :src="`${VITE_GLOB_API_URL}/${imageItem}`" > @@ -125,7 +125,7 @@ v-if="imageItem" width="100px" height="100px" - :src="`http://192.168.10.102:9023/${imageItem}`" + :src="`${VITE_GLOB_API_URL}/${imageItem}`" > @@ -173,6 +173,8 @@ import { getGeom } from '@/api/sys/layerManagement'; import { useMessage } from '@/hooks/web/useMessage'; const { createMessage } = useMessage(); import Icon from '@/components/Icon/Icon.vue'; +import { getAppEnvConfig } from '@/utils/env'; +const { VITE_GLOB_API_URL } = getAppEnvConfig(); import { mapTypeOptions, illegalTypeOptions, @@ -365,7 +367,7 @@ function changeTask() { } } const downLoadFile = (url) => { - window.open(`http://192.168.10.102:9023/${url}`,"mozillaTab") + window.open(`${VITE_GLOB_API_URL}/${url}`,"mozillaTab") } diff --git a/src/views/demo/workflow/h5/create.vue b/src/views/demo/workflow/h5/create.vue index 7f7b3b00..f4f2f167 100644 --- a/src/views/demo/workflow/h5/create.vue +++ b/src/views/demo/workflow/h5/create.vue @@ -65,7 +65,6 @@