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 @@
- +