mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
update: remove debug log
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}}
|
||||
|
||||
Vendored
+1
-1
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user