From 39728cd1aadab55d200b2289a40f0723c6977db4 Mon Sep 17 00:00:00 2001 From: doublex001 <16157008+doublex001@user.noreply.gitee.com> Date: Tue, 1 Sep 2026 13:22:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20HR/=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E7=AB=AF=E8=BF=9B=E4=B8=8D=E5=8E=BB=EF=BC=88=E9=9D=9E?= =?UTF-8?q?=20Tab=20=E9=A1=B5=E8=AF=AF=E7=BD=AE=E4=BA=8E=20Tabs=20?= =?UTF-8?q?=E7=BB=84=E5=86=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 (enterprise) 组内 6 个非 Tab 屏企业页(enterprise-certification/audit-report/candidate-detail/hr-evaluation/job-publish/operation-rules)移回根目录 app/,与求职端 job-preference 结构对称 - 仅保留 4 个 Tab 屏(enterprise-overview/job-management/talent-recommendation/enterprise-chat)+ _layout 在组内 - 修正移回文件相对引用 ../../src → ../src - 根因:enterprise-certification 被塞进 Tabs 组但非 Tab 屏,router.replace('/enterprise-certification') 进入后 Tab 导航器因 route 未声明而导航失败/白屏,导致『HR 进不去』;移出后成为干净栈页,身份认证→企业端链路通畅 --- app/{(enterprise) => }/audit-report.tsx | 6 +++--- app/{(enterprise) => }/candidate-detail.tsx | 6 +++--- app/{(enterprise) => }/enterprise-certification.tsx | 8 ++++---- app/{(enterprise) => }/hr-evaluation.tsx | 6 +++--- app/{(enterprise) => }/job-publish.tsx | 6 +++--- app/{(enterprise) => }/operation-rules.tsx | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) rename app/{(enterprise) => }/audit-report.tsx (99%) rename app/{(enterprise) => }/candidate-detail.tsx (99%) rename app/{(enterprise) => }/enterprise-certification.tsx (98%) rename app/{(enterprise) => }/hr-evaluation.tsx (99%) rename app/{(enterprise) => }/job-publish.tsx (99%) rename app/{(enterprise) => }/operation-rules.tsx (98%) diff --git a/app/(enterprise)/audit-report.tsx b/app/audit-report.tsx similarity index 99% rename from app/(enterprise)/audit-report.tsx rename to app/audit-report.tsx index d95434c..0edf664 100644 --- a/app/(enterprise)/audit-report.tsx +++ b/app/audit-report.tsx @@ -3,9 +3,9 @@ import { useRouter } from 'expo-router'; import { ActivityIndicator, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import Svg, { Line, Path, Rect, Text as SvgText } from 'react-native-svg'; -import { useAuditReport } from '../../src/hooks'; -import { colors } from '../../src/theme'; -import type { AuditKPI, AuditTrendPoint, RiskDistributionItem } from '../../src/types'; +import { useAuditReport } from '../src/hooks'; +import { colors } from '../src/theme'; +import type { AuditKPI, AuditTrendPoint, RiskDistributionItem } from '../src/types'; /* ===================== 子组件:顶部导航 ===================== */ diff --git a/app/(enterprise)/candidate-detail.tsx b/app/candidate-detail.tsx similarity index 99% rename from app/(enterprise)/candidate-detail.tsx rename to app/candidate-detail.tsx index a3c7887..2d7e302 100644 --- a/app/(enterprise)/candidate-detail.tsx +++ b/app/candidate-detail.tsx @@ -10,9 +10,9 @@ import { } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import Svg, { Line, Path, Polygon, Text as SvgText } from 'react-native-svg'; -import { useCandidateDetail } from '../../src/hooks'; -import { colors } from '../../src/theme'; -import type { CandidateAbility, CandidateReview } from '../../src/types'; +import { useCandidateDetail } from '../src/hooks'; +import { colors } from '../src/theme'; +import type { CandidateAbility, CandidateReview } from '../src/types'; /* ===================== 子组件:顶部导航 ===================== */ diff --git a/app/(enterprise)/enterprise-certification.tsx b/app/enterprise-certification.tsx similarity index 98% rename from app/(enterprise)/enterprise-certification.tsx rename to app/enterprise-certification.tsx index 2d1f136..4db1d67 100644 --- a/app/(enterprise)/enterprise-certification.tsx +++ b/app/enterprise-certification.tsx @@ -11,10 +11,10 @@ import { View, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; -import { useEnterpriseCertification } from '../../src/hooks'; -import { useAuth } from '../../src/context/AuthContext'; -import { colors } from '../../src/theme'; -import type { EnterpriseCertificationForm, EnterpriseCertificationStatus } from '../../src/types'; +import { useEnterpriseCertification } from '../src/hooks'; +import { useAuth } from '../src/context/AuthContext'; +import { colors } from '../src/theme'; +import type { EnterpriseCertificationForm, EnterpriseCertificationStatus } from '../src/types'; /* ===================== 子组件:顶部导航 ===================== */ diff --git a/app/(enterprise)/hr-evaluation.tsx b/app/hr-evaluation.tsx similarity index 99% rename from app/(enterprise)/hr-evaluation.tsx rename to app/hr-evaluation.tsx index 12f810f..ba15b4e 100644 --- a/app/(enterprise)/hr-evaluation.tsx +++ b/app/hr-evaluation.tsx @@ -10,9 +10,9 @@ import { } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import Svg, { Circle, Line, Path, Text as SvgText } from 'react-native-svg'; -import { useHREvaluation } from '../../src/hooks'; -import { colors } from '../../src/theme'; -import type { EvaluationDimension, EvaluationReview, EvaluationTrendPoint } from '../../src/types'; +import { useHREvaluation } from '../src/hooks'; +import { colors } from '../src/theme'; +import type { EvaluationDimension, EvaluationReview, EvaluationTrendPoint } from '../src/types'; /** 评级 → 文字颜色(优秀=品牌蓝,良好=主色,其他=次要文字) */ const LEVEL_TEXT_COLOR: Record = { diff --git a/app/(enterprise)/job-publish.tsx b/app/job-publish.tsx similarity index 99% rename from app/(enterprise)/job-publish.tsx rename to app/job-publish.tsx index 496f419..c47bbe6 100644 --- a/app/(enterprise)/job-publish.tsx +++ b/app/job-publish.tsx @@ -11,9 +11,9 @@ import { View, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; -import { useJobPublish } from '../../src/hooks'; -import { colors } from '../../src/theme'; -import type { JobPublishFormData } from '../../src/types'; +import { useJobPublish } from '../src/hooks'; +import { colors } from '../src/theme'; +import type { JobPublishFormData } from '../src/types'; const WORK_TYPE_OPTIONS: { label: string; value: JobPublishFormData['workType'] }[] = [ { label: '全职', value: 'full-time' }, diff --git a/app/(enterprise)/operation-rules.tsx b/app/operation-rules.tsx similarity index 98% rename from app/(enterprise)/operation-rules.tsx rename to app/operation-rules.tsx index 1336cca..b3435d7 100644 --- a/app/(enterprise)/operation-rules.tsx +++ b/app/operation-rules.tsx @@ -12,9 +12,9 @@ import { View, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; -import { useOperationRules } from '../../src/hooks'; -import { colors } from '../../src/theme'; -import type { MatchMode, OperationRules } from '../../src/types'; +import { useOperationRules } from '../src/hooks'; +import { colors } from '../src/theme'; +import type { MatchMode, OperationRules } from '../src/types'; /* ===================== 子组件:顶部导航 ===================== */