From 19193bbc7d10a29fbb5c238f89f6410625d24685 Mon Sep 17 00:00:00 2001 From: kunkka Date: Sat, 17 Oct 2020 21:09:38 +0800 Subject: [PATCH] fix: typo and remove code --- src/store/actions.js | 1 - src/store/mutations.js | 3 +-- src/utils/request.js | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/store/actions.js b/src/store/actions.js index b159112..3fff122 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -1,4 +1,3 @@ -// import { getMP3 } from "@/api/track"; import { updateMediaSessionMetaData } from "@/utils/mediaSession"; import { getTrackDetail, scrobble } from "@/api/track"; diff --git a/src/store/mutations.js b/src/store/mutations.js index 457ec5d..ec1dc24 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -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) { diff --git a/src/utils/request.js b/src/utils/request.js index 795d218..7c4ae44 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -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;