diff --git a/apps/web/src/containers/Alloc.tsx b/apps/web/src/containers/Alloc.tsx index 75b3872..3c64b38 100644 --- a/apps/web/src/containers/Alloc.tsx +++ b/apps/web/src/containers/Alloc.tsx @@ -69,7 +69,6 @@ export function Alloc() { if (left != 0) return toastMsg('还有剩余点数未分配', 'alloc-toast') const achievements = start() toastAchvs(achievements) - console.log('Achievements', achievements) } return (
diff --git a/apps/web/src/containers/Play.tsx b/apps/web/src/containers/Play.tsx index d037e64..e16a2d7 100644 --- a/apps/web/src/containers/Play.tsx +++ b/apps/web/src/containers/Play.tsx @@ -155,13 +155,11 @@ export function Play() { if (ended) return const achievements = next() toastAchvs(achievements) - console.debug('Achievements:', achievements) }, [ended, next]) const handleGotoSummary = useCallback(() => { if (!ended) return const achievements = gotoSummary() toastAchvs(achievements) - console.debug('Achievements:', achievements) }, [ended, gotoSummary]) useLayoutEffect(() => { requestAnimationFrame(() => { diff --git a/apps/web/src/toast/Achv.tsx b/apps/web/src/toast/Achv.tsx index f55fc53..af3db84 100644 --- a/apps/web/src/toast/Achv.tsx +++ b/apps/web/src/toast/Achv.tsx @@ -16,7 +16,6 @@ export function ToastAchvContainer() { reverseOrder: true, gutter: 8, }) - console.log('toast offset', toast.id, offset) return (
{ if (el && typeof toast.height !== 'number') { const height = el.getBoundingClientRect().height - console.log('toast height', toast.id, height) updateHeight(toast.id, height) } }} diff --git a/apps/web/src/toast/Msg.tsx b/apps/web/src/toast/Msg.tsx index 8fe7a37..f24b948 100644 --- a/apps/web/src/toast/Msg.tsx +++ b/apps/web/src/toast/Msg.tsx @@ -16,7 +16,6 @@ export function ToastMsgContainer() { reverseOrder: true, gutter: 8, }) - console.log('toast offset', toast.id, offset) return (
{ if (el && typeof toast.height !== 'number') { const height = el.getBoundingClientRect().height - console.log('toast height', toast.id, height) updateHeight(toast.id, height) } }} diff --git a/thirdparty/bili-toy/wrapper.ts b/thirdparty/bili-toy/wrapper.ts index b0cdb5f..e0eb8e0 100644 --- a/thirdparty/bili-toy/wrapper.ts +++ b/thirdparty/bili-toy/wrapper.ts @@ -20,7 +20,7 @@ export async function init() { window.ToyCloudSaveCore = coreModule.ToyCloudSaveCore || coreModule.default || coreModule } catch (error) { - console.error('Failed to load Bili Toy SDK:', error) + throw new Error('Failed to load Bili Toy SDK', { cause: error }) } }