gemercheung 1 год назад
Родитель
Сommit
893355dd33
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/app/map/App.vue

+ 9 - 1
src/app/map/App.vue

@@ -166,8 +166,16 @@ const request = axios.create({
 const mapEl = ref<HTMLDivElement>();
 let AMap, map;
 const domain = location.protocol + "//" + location.host;
+let queryURL =''
+
+if(String(location.pathname).includes('criminal')){
+  queryURL = `${domain}/fusion/case/list`;
+
+}else{
+  queryURL = `${domain}/fusion/web/fireProject/queryProject`;
+}
+
 
-const queryURL = `${domain}/fusion/web/fireProject/queryProject`;
 
 axios.get(getSysSetting).then((data) => {
   const { themeColour } = data.data;