+
{showSearchMode && }
{taxonomies?.map((tax, index) => {
const items = Object.entries(selectedTerms).find(
diff --git a/apps/web/src/app/main/layout/BasePost/SearchModeRadio.tsx b/apps/web/src/app/main/layout/BasePost/SearchModeRadio.tsx
index 692bfe2..507e94f 100644
--- a/apps/web/src/app/main/layout/BasePost/SearchModeRadio.tsx
+++ b/apps/web/src/app/main/layout/BasePost/SearchModeRadio.tsx
@@ -11,14 +11,14 @@ export default function SearchModeRadio() {
return (
- 搜索模式
+ 只搜索
- 课程
- 路径
- 全部
+ 视频课程
+ 思维导图
+ 所有资源
);
diff --git a/apps/web/src/app/main/layout/MainHeader.tsx b/apps/web/src/app/main/layout/MainHeader.tsx
index 1735bbd..deb6b62 100755
--- a/apps/web/src/app/main/layout/MainHeader.tsx
+++ b/apps/web/src/app/main/layout/MainHeader.tsx
@@ -30,44 +30,44 @@ export function MainHeader() {
- {/* 中间搜索区域 - 允许适当收缩但保持可用性 */}
-
-
- }
- placeholder="搜索课程"
- className="w-full md:w-96 rounded-full"
- value={searchValue}
- onClick={(e) => {
- if (!window.location.pathname.startsWith("/search")) {
- navigate(`/search`);
- window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
- }
- }}
- onChange={(e) => setSearchValue(e.target.value)}
- onPressEnter={(e) => {
- if (!window.location.pathname.startsWith("/search")) {
- navigate(`/search`);
- window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
- }
- }}
- />
-
{/* 右侧区域 - 可以灵活收缩 */}
+
+ }
+ placeholder="搜索课程"
+ className="w-full md:w-96 rounded-full"
+ value={searchValue}
+ onClick={(e) => {
+ if (!window.location.pathname.startsWith("/search")) {
+ navigate(`/search`);
+ window.scrollTo({
+ top: 0,
+ behavior: "smooth",
+ });
+ }
+ }}
+ onChange={(e) => setSearchValue(e.target.value)}
+ onPressEnter={(e) => {
+ if (!window.location.pathname.startsWith("/search")) {
+ navigate(`/search`);
+ window.scrollTo({
+ top: 0,
+ behavior: "smooth",
+ });
+ }
+ }}
+ />
{isAuthenticated && (
<>