diff --git a/src/App.vue b/src/App.vue
index 972aef3..743a4f5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,151 +1,77 @@
-
-
-
-
-
- 将文件拖到此处,或点击选择
- 本工具仅在浏览器内对文件进行解锁,无需消耗流量
-
-
-
-
-
- 歌曲命名格式:
- 歌曲名
- 歌手-歌曲名
- 歌曲名-歌手
- 立即保存
-
-
- 下载全部
- 删除全部
+
+
+
+
+
+
+ 歌曲命名格式:
+ 歌曲名
+ 歌手-歌曲名
+ 歌曲名-歌手
+ 立即保存
-
-
+ 下载全部
+ 删除全部
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- 暂无封面
-
-
-
-
-
-
- {{ scope.row.title }}
-
-
-
-
- {{ scope.row.artist }}
-
-
-
-
- {{ scope.row.album }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -285,15 +160,9 @@
font-size: small;
}
- /*noinspection CssUnusedSymbol*/
- .el-upload-dragger {
- width: 80vw !important;
- }
-
#app-control {
padding-top: 1em;
padding-bottom: 1em;
}
-
diff --git a/src/component/preview.vue b/src/component/preview.vue
new file mode 100644
index 0000000..4ef6f33
--- /dev/null
+++ b/src/component/preview.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+ 暂无封面
+
+
+
+
+
+
+ {{ scope.row.title }}
+
+
+
+
+ {{ scope.row.artist }}
+
+
+
+
+ {{ scope.row.album }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/component/upload.vue b/src/component/upload.vue
new file mode 100644
index 0000000..43c6a42
--- /dev/null
+++ b/src/component/upload.vue
@@ -0,0 +1,82 @@
+
+
+
+ 将文件拖到此处,或点击选择
+ 本工具仅在浏览器内对文件进行解锁,无需消耗流量
+
+
+
+
+
+
diff --git a/src/component/util.js b/src/component/util.js
new file mode 100644
index 0000000..dcc671b
--- /dev/null
+++ b/src/component/util.js
@@ -0,0 +1,26 @@
+export function DownloadBlobMusic(data, format) {
+ const a = document.createElement('a');
+ a.href = data.file;
+ switch (format) {
+ case "1":
+ a.download = data.title + "." + data.ext;
+ break;
+ case "2":
+ a.download = data.artist + " - " + data.title + "." + data.ext;
+ break;
+ case "3":
+ a.download = data.title + " - " + data.artist + "." + data.ext;
+ break;
+ default:
+ a.download = data.filename;
+ break;
+ }
+ document.body.append(a);
+ a.click();
+ a.remove();
+}
+
+export function RemoveBlobMusic(data) {
+ URL.revokeObjectURL(data.file);
+ URL.revokeObjectURL(data.picture);
+}
diff --git a/src/decrypt/common.js b/src/decrypt/common.js
index 6371847..16d9d07 100644
--- a/src/decrypt/common.js
+++ b/src/decrypt/common.js
@@ -42,9 +42,9 @@ export async function CommonDecrypt(file) {
default:
rt_data = {status: false, message: "不支持此文件格式",}
}
- if (rt_data.status) {
- rt_data.rawExt = raw_ext;
- rt_data.rawFilename = raw_filename;
- }
+
+ rt_data.rawExt = raw_ext;
+ rt_data.rawFilename = raw_filename;
+
return rt_data;
}