update: remove debug log

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent ae5d318e9b
commit 907d0e7d09
5 changed files with 1 additions and 8 deletions
-1
View File
@@ -69,7 +69,6 @@ export function Alloc() {
if (left != 0) return toastMsg('还有剩余点数未分配', 'alloc-toast')
const achievements = start()
toastAchvs(achievements)
console.log('Achievements', achievements)
}
return (
<div className="screen point-allocation">
-2
View File
@@ -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(() => {
-2
View File
@@ -16,7 +16,6 @@ export function ToastAchvContainer() {
reverseOrder: true,
gutter: 8,
})
console.log('toast offset', toast.id, offset)
return (
<div
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
@@ -24,7 +23,6 @@ export function ToastAchvContainer() {
ref={el => {
if (el && typeof toast.height !== 'number') {
const height = el.getBoundingClientRect().height
console.log('toast height', toast.id, height)
updateHeight(toast.id, height)
}
}}
-2
View File
@@ -16,7 +16,6 @@ export function ToastMsgContainer() {
reverseOrder: true,
gutter: 8,
})
console.log('toast offset', toast.id, offset)
return (
<div
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
@@ -24,7 +23,6 @@ export function ToastMsgContainer() {
ref={el => {
if (el && typeof toast.height !== 'number') {
const height = el.getBoundingClientRect().height
console.log('toast height', toast.id, height)
updateHeight(toast.id, height)
}
}}
+1 -1
View File
@@ -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 })
}
}