fix: 登录后 showToast 未导入导致欢迎提示崩溃;顺带清除 auth.ts 死代码,补充 vue-tsc 类型工具
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user