用户组增加权限控制

This commit is contained in:
mtvpls
2026-04-22 16:22:17 +08:00
parent 2734de0c85
commit 0916e4ff08
61 changed files with 617 additions and 165 deletions
+6
View File
@@ -116,6 +116,12 @@ export default function MusicPage() {
const [loadingPlayAll, setLoadingPlayAll] = useState(false); // 播放全部加载状态
const [deletingPlaylistId, setDeletingPlaylistId] = useState<string | null>(null); // 正在删除的歌单ID
useEffect(() => {
if (typeof window !== 'undefined' && !(window as any).RUNTIME_CONFIG?.MUSIC_ENABLED) {
router.replace('/');
}
}, [router]);
// Toast 和 Confirm Modal 状态
const [toast, setToast] = useState<ToastProps | null>(null);
const [confirmModal, setConfirmModal] = useState<{