fix: bugs

This commit is contained in:
qier222 2021-04-20 14:25:26 +08:00
parent fc08992244
commit 2f0e8e1e24
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
4 changed files with 35 additions and 20 deletions

View file

@ -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");