diff --git a/src/App.vue b/src/App.vue
index b2dbfb0..ddf940f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,19 +5,19 @@
@@ -44,9 +44,7 @@ export default {
};
},
created() {
- this.$nextTick(() => {
- this.finishLoad()
- });
+ this.$nextTick(() => this.finishLoad());
},
methods: {
async finishLoad() {
@@ -79,7 +77,7 @@ export default {
最近更新
${config.updateInfo}
- 使用提示
+ 使用提示
`,
dangerouslyUseHTMLString: true,
duration: 10000,
diff --git a/src/view/Home.vue b/src/view/Home.vue
index 41cda6b..a4f64e5 100644
--- a/src/view/Home.vue
+++ b/src/view/Home.vue
@@ -18,7 +18,9 @@
:album="editing_data.album"
:albumartist="editing_data.albumartist"
:genre="editing_data.genre"
- @cancel="showEditDialog = false" @ok="handleEdit">
+ @cancel="showEditDialog = false"
+ @ok="handleEdit"
+ >
@@ -37,7 +39,7 @@
开启后,解锁结果将不会存留于浏览器中,防止内存不足。
- 立即保存
+ 立即保存
@@ -50,7 +52,8 @@
:table-data="tableData"
@download="saveFile"
@edit="editFile"
- @play="changePlaying" />
+ @play="changePlaying"
+ />
@@ -76,7 +79,7 @@ export default {
return {
showConfigDialog: false,
showEditDialog: false,
- editing_data: { picture: '', title: '', artist: '', album: '', albumartist: '', genre: '', },
+ editing_data: { picture: '', title: '', artist: '', album: '', albumartist: '', genre: '' },
tableData: [],
playing_url: '',
playing_auto: false,
@@ -117,7 +120,7 @@ export default {
errInfo +
',' +
filename +
- ',参考使用提示',
+ ',参考使用提示',
dangerouslyUseHTMLString: true,
duration: 6000,
});
@@ -170,12 +173,13 @@ export default {
console.warn('获取图像失败', this.editing_data.picture);
}
}
- const newMeta = { picture: imageInfo?.buffer,
+ const newMeta = {
+ picture: imageInfo?.buffer,
title: data.title,
artists: data.artist.split(split_regex),
album: data.album,
albumartist: data.albumartist,
- genre: data.genre.split(split_regex)
+ genre: data.genre.split(split_regex),
};
const buffer = Buffer.from(await this.editing_data.blob.arrayBuffer());
const mime = AudioMimeType[this.editing_data.ext] || AudioMimeType.mp3;