feat: 合并后台到主服务端口19004
- 后台管理整合到 /admin 路径 - 前台保持原有路由 - 统一API路径(后台 /admin/api/xxx) - 删除独立admin服务(保留admin目录作为模板) - 简化部署,只需启动一个服务
This commit is contained in:
@@ -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>>
|
||||
Reference in New Issue
Block a user