bill 5 hónapja
szülő
commit
86c558d369
1 módosított fájl, 2 hozzáadás és 1 törlés
  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>