refactor: 替换 console.log 为统一日志工具(任务 3.2/20)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user