fix: 当不存在专辑时,不在歌词界面显示多余的符号 (#941)

* code clear

* 当不存在专辑时,不在歌词界面显示 - 符号

* some change
master
memorydream 3 years ago committed by GitHub
parent d424f2cad5
commit b6cc6f8284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,14 +42,10 @@ export function initIpcMain(win, store) {
exitAsk(e);
} else {
let closeOpt = store.get('settings.closeAppOption');
console.log(closeOpt);
if (closeOpt === 'exit') {
win = null;
//app.quit();
app.exit(); //exit()直接关闭客户端不会执行quit();
} else if (closeOpt === 'minimize') {
e.preventDefault(); //阻止默认行为
win.minimize(); //调用 最小化实例方法
} else if (closeOpt === 'minimizeToTray') {
e.preventDefault();
win.hide();

@ -57,13 +57,15 @@
@click.native="toggleLyrics"
>{{ artist.name }}
</router-link>
-
<router-link
:to="`/album/${album.id}`"
:title="album.name"
@click.native="toggleLyrics"
>{{ album.name }}
</router-link>
<span v-if="album.id !== 0">
-
<router-link
:to="`/album/${album.id}`"
:title="album.name"
@click.native="toggleLyrics"
>{{ album.name }}
</router-link>
</span>
</div>
</div>
<div class="buttons">

Loading…
Cancel
Save