mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-23 01:42:25 +08:00
commit
c6ea637e40
|
@ -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 } from "howler";
|
import { Howl } from "howler";
|
||||||
import state from "./state";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
updatePlayerState(state, { key, value }) {
|
updatePlayerState(state, { key, value }) {
|
||||||
|
@ -83,7 +82,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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user