fix: resolve lint and typecheck issues

This commit is contained in:
Misaka
2026-03-21 09:33:07 +08:00
parent 2fba07fd8f
commit 2b4a09dabe
26 changed files with 356 additions and 336 deletions

View File

@@ -70,8 +70,9 @@ export class SessionManager {
public async loginByComputerName(): Promise<boolean> {
try {
const { BIPUsersDAO } = await import('./bip-users-dao')
const { hostname } = await import('os')
const dao = new BIPUsersDAO()
const computerName = require('os').hostname()
const computerName = hostname()
const userInfo = await dao.authenticateByComputerName(computerName)
if (userInfo) {