wangfumin 2 месяцев назад
Родитель
Сommit
e417622b62
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/view/case/share.vue

+ 5 - 1
src/view/case/share.vue

@@ -38,7 +38,11 @@ const oldRandCode = ref("");
 const shareLink = computed(() => {
   const base = location.origin;
   const p = md5(randCode.value || "");
-  return `${base}/#/fireDetails/${props.caseId}?editOrShow=edit&fromRoute=fire&share=1&p=${p}`;
+  if(base.indexOf("localhost") == -1){
+    return `${base}/#/fireDetails/${props.caseId}?editOrShow=edit&fromRoute=fire&share=1&p=${p}`;
+  } else {
+    return `${base}/fire/#/fireDetails/${props.caseId}?editOrShow=edit&fromRoute=fire&share=1&p=${p}`;
+  }
 });
 
 const filterPSW = (val: string) => {