fix: bugs

This commit is contained in:
qier222 2021-04-27 17:39:26 +08:00
parent 1f02f6c71f
commit b059de17fb
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D
2 changed files with 5 additions and 4 deletions

View File

@ -122,10 +122,10 @@
</div>
<ContextMenu ref="playlistTabMenu">
<div class="item" @click="changePlaylistFilter('all')"> 全部歌单 </div>
<div class="item" @click="changePlaylistFilter('all')">全部歌单</div>
<hr />
<div class="item" @click="changePlaylistFilter('mine')"> 创建的歌单 </div>
<div class="item" @click="changePlaylistFilter('liked')">收藏的歌单 </div>
<div class="item" @click="changePlaylistFilter('mine')">创建的歌单</div>
<div class="item" @click="changePlaylistFilter('liked')">收藏的歌单</div>
</ContextMenu>
</div>
</template>

View File

@ -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']),