update: remove debug log

This commit is contained in:
Vick Scarlet
2026-08-16 18:33:39 +08:00
parent fca4b7b557
commit da997b7a8e
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') if (left != 0) return toastMsg('还有剩余点数未分配', 'alloc-toast')
const achievements = start() const achievements = start()
toastAchvs(achievements) toastAchvs(achievements)
console.log('Achievements', achievements)
} }
return ( return (
<div className="screen point-allocation"> <div className="screen point-allocation">
-2
View File
@@ -155,13 +155,11 @@ export function Play() {
if (ended) return if (ended) return
const achievements = next() const achievements = next()
toastAchvs(achievements) toastAchvs(achievements)
console.debug('Achievements:', achievements)
}, [ended, next]) }, [ended, next])
const handleGotoSummary = useCallback(() => { const handleGotoSummary = useCallback(() => {
if (!ended) return if (!ended) return
const achievements = gotoSummary() const achievements = gotoSummary()
toastAchvs(achievements) toastAchvs(achievements)
console.debug('Achievements:', achievements)
}, [ended, gotoSummary]) }, [ended, gotoSummary])
useLayoutEffect(() => { useLayoutEffect(() => {
requestAnimationFrame(() => { requestAnimationFrame(() => {
-2
View File
@@ -16,7 +16,6 @@ export function ToastAchvContainer() {
reverseOrder: true, reverseOrder: true,
gutter: 8, gutter: 8,
}) })
console.log('toast offset', toast.id, offset)
return ( return (
<div <div
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`} className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
@@ -24,7 +23,6 @@ export function ToastAchvContainer() {
ref={el => { ref={el => {
if (el && typeof toast.height !== 'number') { if (el && typeof toast.height !== 'number') {
const height = el.getBoundingClientRect().height const height = el.getBoundingClientRect().height
console.log('toast height', toast.id, height)
updateHeight(toast.id, height) updateHeight(toast.id, height)
} }
}} }}
-2
View File
@@ -16,7 +16,6 @@ export function ToastMsgContainer() {
reverseOrder: true, reverseOrder: true,
gutter: 8, gutter: 8,
}) })
console.log('toast offset', toast.id, offset)
return ( return (
<div <div
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`} className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
@@ -24,7 +23,6 @@ export function ToastMsgContainer() {
ref={el => { ref={el => {
if (el && typeof toast.height !== 'number') { if (el && typeof toast.height !== 'number') {
const height = el.getBoundingClientRect().height const height = el.getBoundingClientRect().height
console.log('toast height', toast.id, height)
updateHeight(toast.id, height) updateHeight(toast.id, height)
} }
}} }}
+1 -1
View File
@@ -20,7 +20,7 @@ export async function init() {
window.ToyCloudSaveCore = window.ToyCloudSaveCore =
coreModule.ToyCloudSaveCore || coreModule.default || coreModule coreModule.ToyCloudSaveCore || coreModule.default || coreModule
} catch (error) { } catch (error) {
console.error('Failed to load Bili Toy SDK:', error) throw new Error('Failed to load Bili Toy SDK', { cause: error })
} }
} }