fix: 登录后 showToast 未导入导致欢迎提示崩溃;顺带清除 auth.ts 死代码,补充 vue-tsc 类型工具

This commit is contained in:
root
2026-10-16 15:41:57 +08:00
parent 8fad42edc7
commit 7517eb0ad9
9 changed files with 116 additions and 20 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { getSession, logoutUser, openUserDatabase, type Session } from './db/aut
import { autoSyncNow, enableRealtimeSync, ensureCloudBinding, stopRealtime } from './sync/engine'
import { clockIn, getAttendance, getWorkRule, getWeeklyNote, searchLogItems, searchMemos, smartClockOut, type WorkRule } from './db/repo'
import { addDays, hhmm, todayStr, weekStart } from './lib/date'
import { useToasts } from './lib/toast'
import { showToast, useToasts } from './lib/toast'
import { attendanceChanged, focusDate, focusMemo, notifyAttendanceChanged } from './lib/bus'
import { categoryLabel, type Attendance, type LogItem, type Memo } from './db/schema'
-1
View File
@@ -95,7 +95,6 @@ export async function createUser(username: string, password: string, migrateLega
const session: Session = { userId: id, username: name }
setSession(session)
setCloudCreds(session.username, password)
if (copied) showToastCopied(copied)
return session
}