调整新建地图列表获取
This commit is contained in:
parent
085990f755
commit
407d1d421b
@ -1,5 +1,6 @@
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import { listPublishMap, getMapListByProjectCode } from '@/api/jmap/map';
|
||||
// listPublishMap
|
||||
import { getMapListByProjectCode, getPublishMapListOnline } from '@/api/jmap/map';
|
||||
import { ProjectCode } from '@/scripts/ProjectConfig';
|
||||
|
||||
export async function getMapListByProject() {
|
||||
@ -8,7 +9,8 @@ export async function getMapListByProject() {
|
||||
if (project.endsWith('xty') || project.endsWith('gzb') || project.endsWith('heb')) {
|
||||
mapList = await getMapListByProjectCode(ProjectCode[project]);
|
||||
} else {
|
||||
mapList = await listPublishMap({ 'drawWay': true });
|
||||
// mapList = await listPublishMap({ 'drawWay': true });
|
||||
mapList = await getPublishMapListOnline();
|
||||
}
|
||||
return mapList;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user