From b059de17fbf2d38abc8231733bc406491d5bc3c5 Mon Sep 17 00:00:00 2001 From: qier222 Date: Tue, 27 Apr 2021 17:39:26 +0800 Subject: [PATCH] fix: bugs --- src/views/library.vue | 6 +++--- src/views/settings.vue | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/library.vue b/src/views/library.vue index d734811..309ab03 100644 --- a/src/views/library.vue +++ b/src/views/library.vue @@ -122,10 +122,10 @@ -
全部歌单
+
全部歌单

-
创建的歌单
-
收藏的歌单
+
创建的歌单
+
收藏的歌单
diff --git a/src/views/settings.vue b/src/views/settings.vue index ba6d96e..ed39e2b 100644 --- a/src/views/settings.vue +++ b/src/views/settings.vue @@ -485,7 +485,6 @@ export default { }, outputDevice: { get() { - if (this.withoutAudioPrivilege === true) this.getAllOutputDevices(); const isValidDevice = this.allOutputDevices.find( device => device.deviceId === this.settings.outputDevice ); @@ -679,9 +678,11 @@ export default { }, created() { this.countDBSize('tracks'); + if (process.env.IS_ELECTRON) this.getAllOutputDevices(); }, activated() { this.countDBSize('tracks'); + if (process.env.IS_ELECTRON) this.getAllOutputDevices(); }, methods: { ...mapActions(['showToast']),