refactor: 替换 console.log 为统一日志工具(任务 3.2/20)

This commit is contained in:
张翔
2026-04-12 16:52:57 +08:00
parent eafa95fd84
commit a4a970875f
4 changed files with 19 additions and 7 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
'use client';
import { useState, useEffect } from 'react';
import { logger } from '@/lib/logger';
const log = logger.child('AdminUsers');
import {
Users as UsersIcon,
Plus,
@@ -96,7 +99,7 @@ export default function UsersPage() {
const handleDelete = async (userId: string) => {
if (deletingUserId) {
console.log('删除操作正在进行中,请勿重复点击');
log.warn('删除操作正在进行中,请勿重复点击');
return;
}