fix(electron): login issue after restart app

This commit is contained in:
qier222 2020-12-05 12:30:48 +08:00
parent b7f51f02c2
commit 870e0a4e9e
5 changed files with 22 additions and 8 deletions

View file

@ -89,7 +89,6 @@ import { loginWithPhone, loginWithEmail } from "@/api/auth";
import md5 from "crypto-js/md5";
import { mapMutations } from "vuex";
import { userPlaylist } from "@/api/user";
import { getMusicU, setMusicU } from "@/utils/auth";
export default {
name: "Login",
@ -184,10 +183,6 @@ export default {
this.processing = false;
return;
}
// MUSIC_U cookie
// 301
const MUSIC_U = getMusicU(data.cookie);
setMusicU("MUSIC_U", MUSIC_U);
if (data.code !== 502) {
this.updateData({ key: "user", value: data.profile });
this.afterLogin();