Commit f5fef0a2 authored by 邓超's avatar 邓超

fix: 替换gis获取元数据接口

parent 784c064b
Pipeline #51536 passed with stages
in 9 minutes 39 seconds
......@@ -35,8 +35,8 @@ const VectorPreviewModal = props => {
setIsLoading(true);
map &&
GetMetaData({ mapServerName: metaData.GISServerProjectName }).then(res2 => {
setIsLoading(false);
if (res2 && res2.units) {
setIsLoading(false);
setCurrentMeta(res2);
const layers = res2.layers || [];
const workspace = res2.mapName.split('_')[0];
......
......@@ -2,7 +2,7 @@ import { get, post, PUBLISH_SERVICE, CITY_SERVICE, PANDA_GIS } from '@/services/
// 1.获取全部地图方案配置
export const GetAllConfig = param => get(`${CITY_SERVICE}/OMS.svc/GetAllConfig`, param);
// 2.获取元数据
export const GetMetaData = param => get(`${PANDA_GIS}/Export`, param);
export const GetMetaData = param => get(`${PANDA_GIS}/${param.mapServerName}`);
// 3.获取元数据新
export const GetMetaDataNew = param => get(`${CITY_SERVICE}/MapServer.svc/${param}`);
......
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