diff --git a/agent/application/pages/__init__.py b/agent/application/pages/__init__.py index 22230e4..8fc66e7 100644 --- a/agent/application/pages/__init__.py +++ b/agent/application/pages/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from application.pages.task import create_task_page +from application.pages.task import task_page from application.pages.knowledge_base import knowledge_base_page from application.pages.login import login_page -__all__ = ["create_task_page", "knowledge_base_page", "login_page"] +__all__ = ["task_page", "knowledge_base_page", "login_page"] diff --git a/agent/application/pages/task.py b/agent/application/pages/task.py index ffc673d..558e948 100644 --- a/agent/application/pages/task.py +++ b/agent/application/pages/task.py @@ -1002,9 +1002,9 @@ def conversation_history_toggle_button( ) -def create_task_page() -> rx.Component: +def task_page() -> rx.Component: """ - 创建任务页面 + 任务页面 """ return rx.box( rx.hstack( diff --git a/agent/application/pages/workbench.py b/agent/application/pages/workbench.py index 8d54291..41a6b76 100644 --- a/agent/application/pages/workbench.py +++ b/agent/application/pages/workbench.py @@ -4,7 +4,7 @@ """ import reflex as rx -from application.pages import create_task_page, knowledge_base_page, login_page +from application.pages import task_page, knowledge_base_page, login_page from application.states import AuthState, TaskState from application.states.models import TaskHistoryItem @@ -313,10 +313,8 @@ def workbench() -> rx.Component: AuthState.activated_nav_button, # 知识库页面 ("knowledge_base", knowledge_base_page()), - # 创建任务页面 - ("create_task", create_task_page()), # 会话页面 - create_task_page(), + task_page(), ), width="100%", height="100vh",