shaun-sheep 5 éve
szülő
commit
648fa520b8
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/api/relation/api.js

+ 2 - 1
src/api/relation/api.js

@@ -75,9 +75,10 @@ export function businessSpaceAll(param) {
   let {relation_type, zone_type, proId} = param
   let userName = storage.get("user_name")
   let ProjectId = localStorage.getItem("projectId")
+  let objectTypes = zone_type ? "?objectTypes=" + zone_type : ''
   return fetch({
     method: 'POST',
-    url: `/api/datacenter/relation-calc/${relation_type}?objectTypes=${zone_type ? '/' +zone_type : ''}`,
+    url: "/api/datacenter/relation-calc/" + relation_type + objectTypes,
     data: proId,
     headers: {'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName}
   })