mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-17 10:27:30 +08:00
@@ -132,7 +132,6 @@ onBeforeUnmount(() => {
|
||||
const checkLoginStatus = () => {
|
||||
const token = localStorage.getItem('token');
|
||||
const userData = localStorage.getItem('user');
|
||||
console.log('触发了', token, userData);
|
||||
|
||||
if (!token || !userData) {
|
||||
router.push('/login');
|
||||
|
||||
Reference in New Issue
Block a user