mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
This commit is contained in:
parent
fc08992244
commit
2f0e8e1e24
4 changed files with 35 additions and 20 deletions
|
|
@ -49,6 +49,7 @@ export default {
|
|||
...mapActions(["showToast"]),
|
||||
...mapMutations(["updateDailyTracks"]),
|
||||
loadDailyTracks() {
|
||||
if (!isAccountLoggedIn()) return;
|
||||
dailyRecommendTracks()
|
||||
.then((result) => {
|
||||
this.updateDailyTracks(result.data.dailySongs);
|
||||
|
|
|
|||
|
|
@ -168,7 +168,11 @@ export default {
|
|||
window.open("https://github.com/qier222/YesPlayMusic");
|
||||
},
|
||||
toLogin() {
|
||||
this.$router.push({ name: "login" });
|
||||
if (process.env.IS_ELECTRON === true) {
|
||||
this.$router.push({ name: "loginAccount" });
|
||||
} else {
|
||||
this.$router.push({ name: "login" });
|
||||
}
|
||||
},
|
||||
windowMinimize() {
|
||||
ipcRenderer.send("minimize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue