mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: 当不存在专辑时,不在歌词界面显示多余的符号 (#941)
* code clear * 当不存在专辑时,不在歌词界面显示 - 符号 * some change
This commit is contained in:
parent
d424f2cad5
commit
b6cc6f8284
2 changed files with 9 additions and 11 deletions
|
|
@ -42,14 +42,10 @@ export function initIpcMain(win, store) {
|
||||||
exitAsk(e);
|
exitAsk(e);
|
||||||
} else {
|
} else {
|
||||||
let closeOpt = store.get('settings.closeAppOption');
|
let closeOpt = store.get('settings.closeAppOption');
|
||||||
console.log(closeOpt);
|
|
||||||
if (closeOpt === 'exit') {
|
if (closeOpt === 'exit') {
|
||||||
win = null;
|
win = null;
|
||||||
//app.quit();
|
//app.quit();
|
||||||
app.exit(); //exit()直接关闭客户端,不会执行quit();
|
app.exit(); //exit()直接关闭客户端,不会执行quit();
|
||||||
} else if (closeOpt === 'minimize') {
|
|
||||||
e.preventDefault(); //阻止默认行为
|
|
||||||
win.minimize(); //调用 最小化实例方法
|
|
||||||
} else if (closeOpt === 'minimizeToTray') {
|
} else if (closeOpt === 'minimizeToTray') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
win.hide();
|
win.hide();
|
||||||
|
|
|
||||||
|
|
@ -57,13 +57,15 @@
|
||||||
@click.native="toggleLyrics"
|
@click.native="toggleLyrics"
|
||||||
>{{ artist.name }}
|
>{{ artist.name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
-
|
<span v-if="album.id !== 0">
|
||||||
<router-link
|
-
|
||||||
:to="`/album/${album.id}`"
|
<router-link
|
||||||
:title="album.name"
|
:to="`/album/${album.id}`"
|
||||||
@click.native="toggleLyrics"
|
:title="album.name"
|
||||||
>{{ album.name }}
|
@click.native="toggleLyrics"
|
||||||
</router-link>
|
>{{ album.name }}
|
||||||
|
</router-link>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue