门诊号码管理维护界面-》优化

This commit is contained in:
2025-11-17 13:09:36 +08:00
parent 7202151a41
commit 93103f7f40
3 changed files with 73 additions and 35 deletions

View File

@@ -28,12 +28,8 @@ export async function logOperation({ operation, details, success, errorMessage,
// 控制台输出(便于调试)
console.log('[门诊号码管理] 操作日志:', logData)
// 调用后端接口记录日志
try {
await addOperationLog(logData)
} catch (apiError) {
console.warn('[门诊号码管理] 日志接口调用失败,仅记录到控制台')
}
// 调用后端接口记录日志(如果接口不存在,静默失败,不会抛出异常)
await addOperationLog(logData)
} catch (error) {
console.error('[门诊号码管理] 记录日志失败:', error)
}