Initial commit

This commit is contained in:
2025-10-11 11:55:25 +08:00
parent 467dad8449
commit 8107dee8d3
2879 changed files with 610575 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
// 调试文件 - 检查 eventService 的方法
import { eventService } from '../services/eventService';
export const debugEventService = () => {
console.log('=== eventService 调试信息 ===');
console.log('eventService 对象:', eventService);
console.log('eventService 类型:', typeof eventService);
console.log('eventService 的所有键:', Object.keys(eventService));
// 检查特定的方法
const methods = [
'getPosts',
'createPost',
'deletePost',
'likePost',
'getPostComments',
'addPostComment',
'deleteComment',
'likeComment'
];
console.log('\n方法检查:');
methods.forEach(method => {
console.log(`${method}:`,
eventService[method] ? '✓ 存在' : '✗ 不存在',
eventService[method] ? `(类型: ${typeof eventService[method]})` : ''
);
});
// 检查是否有其他相似的方法名
console.log('\n所有方法列表:');
Object.keys(eventService).forEach(key => {
if (typeof eventService[key] === 'function') {
console.log(`- ${key}`);
}
});
return eventService;
};