From 5aa7b5f3d0b696f4f7db22f6af8b96902ffa4da2 Mon Sep 17 00:00:00 2001 From: bruce Date: Thu, 4 Jun 2026 08:47:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(routing):=20=E9=BB=98=E8=AE=A4=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E5=AE=A1=E6=A0=B8=E8=81=8A=E5=A4=A9=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/urls.py | 5 ++++- templates/base.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/urls.py b/config/urls.py index 66dcf1e..74b64ad 100644 --- a/config/urls.py +++ b/config/urls.py @@ -1,13 +1,16 @@ from django.conf import settings from django.conf.urls.static import static from django.contrib import admin +from django.views.generic import RedirectView from django.urls import include, path # 总路由只承担模块装配职责,不在这里写业务逻辑。 urlpatterns = [ path("admin/", admin.site.urls), - path("", include("apps.scenarios.urls")), + # 首页默认进入审核工作台,旧的平台总览改为非默认入口,便于演示聚焦主链路。 + path("", RedirectView.as_view(pattern_name="chat:index", permanent=False)), + path("scenarios/", include("apps.scenarios.urls")), path("chat/", include("apps.chat.urls")), path("documents/", include("apps.documents.urls")), path("audit/", include("apps.audit.urls")), diff --git a/templates/base.html b/templates/base.html index 13a1a86..fb33baa 100644 --- a/templates/base.html +++ b/templates/base.html @@ -360,13 +360,13 @@