Commit 32fe9bba authored by 皮倩雯's avatar 皮倩雯

fix: '修复默认地图方案选择错误'

parent fc92da71
Pipeline #64249 passed with stages
...@@ -19,9 +19,10 @@ const PerviewPrase = props => { ...@@ -19,9 +19,10 @@ const PerviewPrase = props => {
relationForm: {}, relationForm: {},
}; };
LayerSetting({ client: 'sandbox' }).then(res => { LayerSetting({ client: 'sandbox' }).then(res => {
let dataArea = res.data.find(i => i.layerType == 'PipenetLayer');
console.log(res.data[0]); console.log(res.data[0]);
let ss = { let ss = {
layers: [res.data[0]], layers: [dataArea],
}; };
let depart = { OID: 1017, code: '1-1016-1017', name: '管理员' }; let depart = { OID: 1017, code: '1-1016-1017', name: '管理员' };
let userInfo = { OID: 1, fullName: '总经理', loginName: 'admin', depart }; let userInfo = { OID: 1, fullName: '总经理', loginName: 'admin', depart };
......
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