bill 5 bulan lalu
induk
melakukan
86c558d369
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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>