Browse Source

feat: save

gemercheung 1 year ago
parent
commit
893355dd33
1 changed files with 9 additions and 1 deletions
  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;