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); 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…
Cancel
Save