add .editorconfig for better coding (#14)
* feat: add config to resolve path alias. * feat: add .editorconfig for ide * fix: add no-referrer to avoid CROB * fix: setCookie and fix typo
This commit is contained in:
parent
a2e901802c
commit
c39bea4a4a
|
@ -0,0 +1,8 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
insert_final_newline = false
|
|
@ -4,6 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="referrer" content="no-referrer">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
|
|
|
@ -112,6 +112,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(["updateUser", "updateUserInfo"]),
|
...mapMutations(["updateUser", "updateUserInfo"]),
|
||||||
afterLogin() {
|
afterLogin() {
|
||||||
|
Cookies.set("MUSIC_U", true, { expires: 3650 });
|
||||||
Cookies.set("loginMode", "account", { expires: 3650 });
|
Cookies.set("loginMode", "account", { expires: 3650 });
|
||||||
userPlaylist({
|
userPlaylist({
|
||||||
uid: this.$store.state.settings.user.userId,
|
uid: this.$store.state.settings.user.userId,
|
||||||
|
@ -128,7 +129,7 @@ export default {
|
||||||
this.processing = true;
|
this.processing = true;
|
||||||
if (this.mode === "phone") {
|
if (this.mode === "phone") {
|
||||||
if (
|
if (
|
||||||
this.countrycode === "" ||
|
this.countryCode === "" ||
|
||||||
this.phone === "" ||
|
this.phone === "" ||
|
||||||
this.password === ""
|
this.password === ""
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue