From 19a5269d5c6c0486fa1cb25cab9e4b16291347f4 Mon Sep 17 00:00:00 2001 From: kunkka Date: Mon, 19 Oct 2020 11:52:10 +0800 Subject: [PATCH] fix: setCookie and fix typo --- src/views/loginAccount.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/loginAccount.vue b/src/views/loginAccount.vue index c335d67..8edfd64 100644 --- a/src/views/loginAccount.vue +++ b/src/views/loginAccount.vue @@ -112,6 +112,7 @@ export default { methods: { ...mapMutations(["updateUser", "updateUserInfo"]), afterLogin() { + Cookies.set("MUSIC_U", true, { expires: 3650 }); Cookies.set("loginMode", "account", { expires: 3650 }); userPlaylist({ uid: this.$store.state.settings.user.userId, @@ -128,7 +129,7 @@ export default { this.processing = true; if (this.mode === "phone") { if ( - this.countrycode === "" || + this.countryCode === "" || this.phone === "" || this.password === "" ) {