mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
Merge branch 'master' of https://github.com/qier222/YesPlayMusic
# Conflicts: # src/store/mutations.js
This commit is contained in:
commit
14a22ccf1e
4 changed files with 6 additions and 8 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
// import { getMP3 } from "@/api/track";
|
|
||||||
import { updateMediaSessionMetaData } from "@/utils/mediaSession";
|
import { updateMediaSessionMetaData } from "@/utils/mediaSession";
|
||||||
import { getTrackDetail, scrobble } from "@/api/track";
|
import { getTrackDetail, scrobble } from "@/api/track";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { Howl, Howler } from "howler";
|
import { Howl, Howler } from "howler";
|
||||||
import state from "./state";
|
|
||||||
import { shuffleAList } from "@/utils/common";
|
import { shuffleAList } from "@/utils/common";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -85,7 +84,7 @@ export default {
|
||||||
updateUser(state, user) {
|
updateUser(state, user) {
|
||||||
state.settings.user = user;
|
state.settings.user = user;
|
||||||
},
|
},
|
||||||
updateUserInfo(sate, { key, value }) {
|
updateUserInfo(state, { key, value }) {
|
||||||
state.settings.user[key] = value;
|
state.settings.user[key] = value;
|
||||||
},
|
},
|
||||||
updateLikedSongs(state, trackIDs) {
|
updateLikedSongs(state, trackIDs) {
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ service.interceptors.response.use(
|
||||||
} else if (res.code === 502) {
|
} else if (res.code === 502) {
|
||||||
alert(res.msg);
|
alert(res.msg);
|
||||||
} else if (res.code === 301) {
|
} else if (res.code === 301) {
|
||||||
alert("required login");
|
alert("login required");
|
||||||
} else {
|
} else {
|
||||||
alert("unknow error");
|
alert("unknown error");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return res;
|
return res;
|
||||||
|
|
|
||||||
|
|
@ -137,8 +137,8 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loginWithPhone({
|
loginWithPhone({
|
||||||
countrycode: this.countryCode.replace("+", "").replaceAll(" ", ""),
|
countrycode: this.countryCode.replace("+", "").replace(/\s/g, ''),
|
||||||
phone: this.phoneNumber.replaceAll(" ", ""),
|
phone: this.phoneNumber.replace(/\s/g, ''),
|
||||||
password: "fakePassword",
|
password: "fakePassword",
|
||||||
md5_password: md5(this.password).toString(),
|
md5_password: md5(this.password).toString(),
|
||||||
})
|
})
|
||||||
|
|
@ -156,7 +156,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loginWithEmail({
|
loginWithEmail({
|
||||||
email: this.email.replaceAll(" ", ""),
|
email: this.email.replace(/\s/g, ''),
|
||||||
password: "fakePassword",
|
password: "fakePassword",
|
||||||
md5_password: md5(this.password).toString(),
|
md5_password: md5(this.password).toString(),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue