{item.date}
diff --git a/src/pages/Join/CampusDetail.tsx b/src/pages/Join/CampusDetail.tsx
index 9798d05..410b14e 100644
--- a/src/pages/Join/CampusDetail.tsx
+++ b/src/pages/Join/CampusDetail.tsx
@@ -25,7 +25,7 @@ export default function CampusDetail() {
content: item.description,
requirement: item.requirement,
lang: item.lang,
- contact: item.contact,
+ contact: item.contract_info,
}
});
setJobDetail(items);
diff --git a/src/pages/Others/SiteMap.tsx b/src/pages/Others/SiteMap.tsx
index 3e06332..eff18f1 100644
--- a/src/pages/Others/SiteMap.tsx
+++ b/src/pages/Others/SiteMap.tsx
@@ -47,7 +47,7 @@ export default function SiteMap() {
{child.children?.map((childChild) => (
diff --git a/src/utils/parsePageConfig.ts b/src/utils/parsePageConfig.ts
index bbe86be..b49ede9 100644
--- a/src/utils/parsePageConfig.ts
+++ b/src/utils/parsePageConfig.ts
@@ -52,7 +52,7 @@ function resolveKeyPath(
if (page === "/") {
if (tags === "menu") return "home";
- if (name === "全局配置") return "__global__";
+ if (tags === "global") return "__global__";
return null;
}
@@ -123,34 +123,6 @@ function buildNavItems(
});
}
-const DEFAULT_FOOTER_ZH = {
- lowerLinks: [
- { path: "/contact-us", label: "联系我们" },
- { path: "/site-map", label: "网站地图" },
- { path: "/terms-of-use", label: "使用条款" },
- { path: "/privacy-policy", label: "隐私保护" },
- { path: "/audit-report", label: "审计举报" },
- ],
- socialIcons: [
- { src: "/images/icon-weixin.png", alt: "weixin" },
- { src: "/images/icon-weibo.png", alt: "weibo" },
- { src: "/images/logo.png", alt: "logo" },
- ],
- copyright: "版权声明©2001-{year} | 中国银泰投资有限公司",
- icpNumber: "京ICP备05026114号-1",
-};
-
-const DEFAULT_FOOTER_EN = {
- ...DEFAULT_FOOTER_ZH,
- lowerLinks: [
- { path: "/contact-us", label: "Contact" },
- { path: "/site-map", label: "Site Map" },
- { path: "/terms-of-use", label: "Terms of Use" },
- { path: "/privacy-policy", label: "Privacy Policy" },
- { path: "/audit-report", label: "Audit Report" },
- ],
- copyright: "Copyright ©2001-{year} | China Yintai Investment Co., Ltd.",
-};
/**
* Restructure global config to match the expected layout:
@@ -193,6 +165,7 @@ export function parsePageConfig(items: RawPageItem[]): {
const zhNavItems = buildNavItems(menuItems, "ZH", parsedContentMap);
const enNavItems = buildNavItems(menuItems, "EN", parsedContentMap);
+
const zhConfig: Record = {};
const enConfig: Record = {};
@@ -220,12 +193,8 @@ export function parsePageConfig(items: RawPageItem[]): {
}
}
- zhConfig.header = { navItems: zhNavItems };
- zhConfig.footer = { ...DEFAULT_FOOTER_ZH };
-
- enConfig.header = { navItems: enNavItems };
- enConfig.footer = { ...DEFAULT_FOOTER_EN };
-
+ zhConfig.navItems = zhNavItems;
+ enConfig.navItems = enNavItems;
deepFallback(enConfig, zhConfig);
return { "zh-CN": zhConfig, "en-US": enConfig };