Ryuiso 10 месяцев назад
Родитель
Сommit
f459b97a49
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      Web/src/pages/page-web/projects/media/detail/components/FileInfo.vue

+ 3 - 2
Web/src/pages/page-web/projects/media/detail/components/FileInfo.vue

@@ -254,8 +254,9 @@ onMounted(async () => {
 })
 })
 
 
 const onClickShare = () => {
 const onClickShare = () => {
-  // const url = window.location.origin + `/mediaInfo?workspaceId=${getWorkspaceId()}&fileId=${state.currentId}`;
-  const url = `https://uav.jkec.info` + `/mediaInfo?workspaceId=${getWorkspaceId()}&fileId=${state.currentId}`;
+  const url = window.location.origin + `/mediaInfo?workspaceId=${getWorkspaceId()}&fileId=${state.currentId}`;
+  // const url2 = `https://uav.jkec.info` + `/mediaInfo?workspaceId=${getWorkspaceId()}&fileId=${state.currentId}`;
+  // console.log("获取的分享url为:" + url);
   navigator.clipboard.writeText(url);
   navigator.clipboard.writeText(url);
   message.success('分享链接已复制到剪贴板');
   message.success('分享链接已复制到剪贴板');
 }
 }