Commit e157987a authored by taabe's avatar taabe

修改3维页面初始化接口参数调整

parent 727e7b41
...@@ -26,7 +26,14 @@ export const getObjFromNet = (url, callback) => { ...@@ -26,7 +26,14 @@ export const getObjFromNet = (url, callback) => {
* @param {string} type * @param {string} type
*/ */
export const initView3DAction = (type,riskSourceId) => { export const initView3DAction = (type,riskSourceId) => {
const url = formatUrl(FscSerUrl.view3dInitUrl, { type, riskSourceId }); let param = {};
if (riskSourceId) {
param = { type, riskSourceId };
}
else {
param = { type };
}
const url = formatUrl(FscSerUrl.view3dInitUrl, param);
return commonGet(url); return commonGet(url);
}; };
......
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