修复打包错误

This commit is contained in:
xuncha
2026-01-31 15:39:59 +08:00
parent 6e3bb9e361
commit d47166e6f9
7 changed files with 50 additions and 31 deletions

View File

@@ -106,10 +106,10 @@ function WelcomePage({ standalone = false }: WelcomePageProps) {
}
useEffect(() => {
const removeDb = window.electronAPI.key.onDbKeyStatus((payload) => {
const removeDb = window.electronAPI.key.onDbKeyStatus((payload: { message: string; level: number }) => {
setDbKeyStatus(payload.message)
})
const removeImage = window.electronAPI.key.onImageKeyStatus((payload) => {
const removeImage = window.electronAPI.key.onImageKeyStatus((payload: { message: string }) => {
setImageKeyStatus(payload.message)
})
return () => {