From 964bbb4b5f23e9e39ead18f55cfa283aaa96ee36 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Mon, 20 May 2024 00:41:51 +0800 Subject: [PATCH] =?UTF-8?q?update(auth):=20=E7=A7=BB=E9=99=A4=20setPlayLis?= =?UTF-8?q?tInfo=20=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 | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/store/audio.ts b/src/store/audio.ts index 5e3b34c..bc1c06b 100644 --- a/src/store/audio.ts +++ b/src/store/audio.ts @@ -3,12 +3,7 @@ import cloneDeep from 'lodash/cloneDeep'; import { create } from 'zustand'; import { devtools, persist, createJSONStorage } from 'zustand/middleware'; -import { openLogin } from '@/components/Login/loginContext'; - -import { checkAuthOffline } from '@/utils/auth'; - import { apiGetSongRandom } from '@/services'; -import { logout } from '@/utils'; interface AuioState { /** 播放状态 true: 播放 false: 暂停 */ @@ -239,12 +234,6 @@ const useAudioState = create()( }), ), setPlayListInfo: (list) => { - if (!checkAuthOffline()) { - localStorage.clear(); - openLogin(); - return false; - } - set( produce((state) => { state.playListInfo = list;