feat: 重构前端代码结构并添加Java后端支持
- 重构前端导入和组件结构,优化代码组织 - 添加Java后端基础框架和API实现 - 修复类型定义和接口兼容性问题 - 新增测试页面和工具函数 - 优化国际化支持和错误处理 - 更新依赖配置和构建脚本 新增Java后端模块: - 实现基础认证、订单、支付等服务 - 添加Swagger API文档支持 - 配置数据库连接和缓存 - 实现国际化消息处理 - 添加安全过滤器和限流控制
This commit is contained in:
20
dashboard/test-console-errors.html
Normal file
20
dashboard/test-console-errors.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test Console Errors</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="app" src="http://localhost:8000" style="width: 100%; height: 100vh; border: none;"></iframe>
|
||||
<script>
|
||||
const iframe = document.getElementById('app');
|
||||
iframe.onload = function() {
|
||||
console.log('Iframe loaded');
|
||||
// 尝试捕获 iframe 中的控制台错误
|
||||
iframe.contentWindow.onerror = function(message, source, lineno, colno, error) {
|
||||
console.error('Iframe error:', message, source, lineno, colno, error);
|
||||
return true;
|
||||
};
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user