bill 5 달 전
부모
커밋
86c558d369
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/components/static-preview/resource.vue

+ 2 - 1
src/components/static-preview/resource.vue

@@ -67,7 +67,8 @@ const type = computed(() => {
 });
 
 const download = async (url: string) => {
-  await saveAs(url);
+  const ndx = url.lastIndexOf("/");
+  await saveAs(url, url.substring(ndx + 1));
   Message.success(ui18n.t("sys.download") + ui18n.t("resCode.0"));
 };
 </script>