fix: typo and remove code

This commit is contained in:
kunkka 2020-10-17 21:09:38 +08:00
parent a4bf6cd577
commit 19193bbc7d
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,3 @@
// import { getMP3 } from "@/api/track";
import { updateMediaSessionMetaData } from "@/utils/mediaSession";
import { getTrackDetail, scrobble } from "@/api/track";

View File

@ -1,5 +1,4 @@
import { Howl } from "howler";
import state from "./state";
export default {
updatePlayerState(state, { key, value }) {
@ -83,7 +82,7 @@ export default {
updateUser(state, user) {
state.settings.user = user;
},
updateUserInfo(sate, { key, value }) {
updateUserInfo(state, { key, value }) {
state.settings.user[key] = value;
},
updateLikedSongs(state, trackIDs) {

View File

@ -15,9 +15,9 @@ service.interceptors.response.use(
} else if (res.code === 502) {
alert(res.msg);
} else if (res.code === 301) {
alert("required login");
alert("login required");
} else {
alert("unknow error");
alert("unknown error");
}
} else {
return res;