mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 05:08:04 +00:00
fix: 当不存在专辑时,不在歌词界面显示多余的符号 (#941)
* code clear * 当不存在专辑时,不在歌词界面显示 - 符号 * some change
This commit is contained in:
parent
0bd11ea996
commit
a038aa5b5b
2 changed files with 9 additions and 11 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue