Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
2.0 KiB
HTML
45 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>前端测试</title>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
<h1>Telegram 管理系统访问测试</h1>
|
|
|
|
<h2>正确的访问地址:</h2>
|
|
<ul>
|
|
<li><a href="http://localhost:8890" target="_blank">主页 - http://localhost:8890</a></li>
|
|
<li><a href="http://localhost:8890/#/login" target="_blank">登录页 - http://localhost:8890/#/login</a></li>
|
|
<li><a href="http://localhost:8890/#/tgAccountManage/telegramQuickAccess" target="_blank">Telegram快速访问 - http://localhost:8890/#/tgAccountManage/telegramQuickAccess</a></li>
|
|
<li><a href="http://localhost:8890/#/tgAccountManage/tgAccountList" target="_blank">账号列表 - http://localhost:8890/#/tgAccountManage/tgAccountList</a></li>
|
|
</ul>
|
|
|
|
<h2>测试结果:</h2>
|
|
<div id="test-result"></div>
|
|
|
|
<script>
|
|
// 测试前端是否可访问
|
|
fetch('http://localhost:8890/')
|
|
.then(response => {
|
|
if (response.ok) {
|
|
document.getElementById('test-result').innerHTML = '<p style="color: green;">✅ 前端服务正常运行在 8890 端口</p>';
|
|
} else {
|
|
document.getElementById('test-result').innerHTML = '<p style="color: red;">❌ 前端服务响应异常</p>';
|
|
}
|
|
})
|
|
.catch(error => {
|
|
document.getElementById('test-result').innerHTML = '<p style="color: red;">❌ 无法连接到前端服务:' + error + '</p>';
|
|
});
|
|
|
|
// 测试后端
|
|
fetch('http://localhost:3000/')
|
|
.then(response => {
|
|
document.getElementById('test-result').innerHTML += '<p style="color: green;">✅ 后端服务正常运行在 3000 端口</p>';
|
|
})
|
|
.catch(error => {
|
|
document.getElementById('test-result').innerHTML += '<p style="color: red;">❌ 无法连接到后端服务</p>';
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |