From a9f96e1e56f882e4110eb9a3ad6e871fcf21ec35 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Thu, 19 Sep 2024 13:46:35 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=8F=96=E6=B6=88=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/audio.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/store/audio.ts b/src/store/audio.ts index d9f0c15..055aaf5 100644 --- a/src/store/audio.ts +++ b/src/store/audio.ts @@ -3,10 +3,10 @@ import cloneDeep from 'lodash/cloneDeep'; import { create } from 'zustand'; import { devtools, persist, createJSONStorage } from 'zustand/middleware'; -import { openLogin } from '@/components/Login/LoginContext'; +// import { openLogin } from '@/components/Login/LoginContext'; import { apiGetSongRandom } from '@/services'; -import { clearAccessToken, checkAuthOffline } from '@/utils'; +// import { clearAccessToken, checkAuthOffline } from '@/utils'; interface AuioState { /** 播放状态 true: 播放 false: 暂停 */ @@ -237,12 +237,12 @@ const useAudioState = create()( }), ), setPlayListInfo: (list) => { - const auth: boolean = checkAuthOffline(); - if (!auth) { - clearAccessToken(); - openLogin(); - return false; - } + // const auth: boolean = checkAuthOffline(); + // if (!auth) { + // clearAccessToken(); + // openLogin(); + // return false; + // } set( produce((state) => {