diff --git a/.gitignore b/.gitignore index a8f7588..a0a2c43 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ pnpm-debug.log* /dist_electron NeteaseCloudMusicApi-master NeteaseCloudMusicApi-master.zip + +# Local Netlify folder +.netlify \ No newline at end of file diff --git a/src/utils/auth.js b/src/utils/auth.js index 82315c2..2bc2fed 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -5,7 +5,7 @@ import store from '@/store'; export function doLogout() { logout(); // 网易云的接口会自动移除该 cookies - // Cookies.remove("MUSIC_U"); + Cookies.remove('MUSIC_U'); // 更新状态仓库中的用户信息 store.commit('updateData', { key: 'user', value: {} }); // 更新状态仓库中的登录状态 diff --git a/src/utils/request.js b/src/utils/request.js index a263430..693d62f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -25,6 +25,10 @@ service.interceptors.request.use(function (config) { config.params.cookie = `MUSIC_U=${Cookies.get('MUSIC_U')};`; } + if (!process.env.IS_ELECTRON) { + config.params.realIP = '211.161.244.70'; + } + const proxy = JSON.parse(localStorage.getItem('settings')).proxyConfig; if (['HTTP', 'HTTPS'].includes(proxy.protocol)) { config.params.proxy = `${proxy.protocol}://${proxy.server}:${proxy.port}`; diff --git a/src/views/home.vue b/src/views/home.vue index 5a2ce63..2d2a090 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -72,7 +72,6 @@ import { toplists, recommendPlaylist } from '@/api/playlist'; import { toplistOfArtists } from '@/api/artist'; import { byAppleMusic } from '@/utils/staticData'; -import { countDBSize } from '@/utils/db'; import { newAlbums } from '@/api/album'; import NProgress from 'nprogress'; import { mapState } from 'vuex'; @@ -152,7 +151,6 @@ export default { this.topList.ids.includes(l.id) ); }); - countDBSize(); this.$refs.DailyTracksCard.loadDailyTracks(); }, }, diff --git a/src/views/loginAccount.vue b/src/views/loginAccount.vue index c62c728..4d8cd2d 100644 --- a/src/views/loginAccount.vue +++ b/src/views/loginAccount.vue @@ -87,15 +87,17 @@
- {{ + {{ $t('login.loginWithEmail') }} | - {{ + {{ $t('login.loginWithPhone') }} | - 二维码登录 + + 二维码登录 +