Przeglądaj źródła

修改分享链接更改

wangfumin 2 miesięcy temu
rodzic
commit
e417622b62
1 zmienionych plików z 5 dodań i 1 usunięć
  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 shareLink = computed(() => {
   const base = location.origin;
   const base = location.origin;
   const p = md5(randCode.value || "");
   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) => {
 const filterPSW = (val: string) => {