tangning před 6 hodinami
rodič
revize
1c67cf0d4e

+ 4 - 3
src/app/map/App.vue

@@ -140,13 +140,15 @@ const handleModeChange = (value: number) => {
 };
 
 const markers = ref<any>([]);
-
+const isCriminal = String(location.pathname).includes('criminal')
+let pathname = location.pathname.split('/')
+const targetValue = pathname[1] || 'fire'
 const getQuery = (
   caseId: number,
   share: boolean = false,
   single: boolean = false
 ) =>
-`./#/fireDetails/${caseId}?editOrShow=show&fromRoute=fire`
+`./#/fireDetails/${caseId}?editOrShow=show&fromRoute=${targetValue}`
   // `${getFuseCodeLink(caseId, true)}${share ? "&share=1" : ""}${single ? "&single=1" : ""
   // }#show/summary`;
 
@@ -162,7 +164,6 @@ const mapEl = ref<HTMLDivElement>();
 let AMap, map;
 const domain = location.protocol + "//" + location.host;
 let queryURL = ''
-const isCriminal = String(location.pathname).includes('criminal')
 if (isCriminal) {
   queryURL = `${domain}/fusion/case/list`;
   const icon = document.querySelector('#app-icon')

+ 1 - 1
src/view/newFireCase/newFireDetails/index.vue

@@ -172,7 +172,7 @@ onMounted(() => {
   // 路由守卫已校验分享密码,这里正常加载基本信息
   setTimeout(() => {
     loadCaseInfo();
-  }, 0);
+  }, 10);
 
   const startShotFlag = String((route.query as any)?.startShot || '');
   if (startShotFlag === '1') {