调整新建地图列表获取

This commit is contained in:
zyy 2020-12-08 11:26:45 +08:00
parent 085990f755
commit 407d1d421b

View File

@ -1,5 +1,6 @@
import { getSessionStorage } from '@/utils/auth'; 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'; import { ProjectCode } from '@/scripts/ProjectConfig';
export async function getMapListByProject() { export async function getMapListByProject() {
@ -8,7 +9,8 @@ export async function getMapListByProject() {
if (project.endsWith('xty') || project.endsWith('gzb') || project.endsWith('heb')) { if (project.endsWith('xty') || project.endsWith('gzb') || project.endsWith('heb')) {
mapList = await getMapListByProjectCode(ProjectCode[project]); mapList = await getMapListByProjectCode(ProjectCode[project]);
} else { } else {
mapList = await listPublishMap({ 'drawWay': true }); // mapList = await listPublishMap({ 'drawWay': true });
mapList = await getPublishMapListOnline();
} }
return mapList; return mapList;
} }