feat: 合并后台到主服务端口19004

- 后台管理整合到 /admin 路径
- 前台保持原有路由
- 统一API路径(后台 /admin/api/xxx)
- 删除独立admin服务(保留admin目录作为模板)
- 简化部署,只需启动一个服务
This commit is contained in:
2026-04-12 17:05:01 +08:00
parent cb4b7d5363
commit 47bf6f48d5
3 changed files with 328 additions and 21 deletions

View File

@@ -98,7 +98,7 @@
const data = await res.json();
if (data.success) {
window.location.href = '/';
window.location.href = '/admin';
} else {
errorEl.textContent = data.error || '登录失败';
errorEl.classList.remove('hidden');
@@ -113,4 +113,4 @@
});
</script>
</body>
</html>
</html>>