fix: Header 跨页锚点导航 + 后台移除固定 URL 编辑项
- Header 作品/联系:首页内直接平滑滚动;在 /services、/work/* 等 非首页时写入 hq:pendingScrollAnchor 后经路由过渡回首页, SmoothScroller 消费并滚动到位(修复其它页面点击无反应) - 服务按钮在 /services 页自身不再重复导航 - PENDING_SCROLL_ANCHOR_SESSION_KEY 收敛到 lib/scrollEnv 单一来源, work 页与 SmoothScroller 共用,消除三处魔法字符串 - 后台「关于」组移除 about_p2_link_href(站内结构性锚点 #selected-work 不可配,只保留链接文字可编辑);seed/settings/类型同步清理
This commit is contained in:
@@ -186,7 +186,6 @@ function seed() {
|
||||
"全栈开发者,融合产品设计与工程能力,负责从产品构思、界面设计到前后端、跨端客户端的完整应用交付,现阶段深耕 AI 应用开发。",
|
||||
about_p2: "我相信工程塑造可靠的产品,设计赋予它们灵魂;",
|
||||
about_p2_link_label: "我的作品",
|
||||
about_p2_link_href: "#selected-work",
|
||||
intro_prefix:
|
||||
"我是北极新一,一名横跨设计与工程的全栈开发者:Web 前端与后端、Flutter 客户端、AI 应用开发都有实践,也从产品设计一路做到工程落地。工作之外,我常在 ",
|
||||
intro_suffix: " 上记录与分享这些探索。",
|
||||
|
||||
@@ -76,3 +76,9 @@ export const scrollEnv = {
|
||||
else (el as HTMLElement).scrollIntoView({ behavior: "smooth" });
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* 跨页锚点:详情页/Header 在非首页时把目标 section 存入 sessionStorage,
|
||||
* startNavigation("/") 回首页后由 SmoothScroller 消费并平滑滚动。
|
||||
*/
|
||||
export const PENDING_SCROLL_ANCHOR_SESSION_KEY = "hq:pendingScrollAnchor";
|
||||
|
||||
@@ -18,7 +18,6 @@ export type SiteConfig = {
|
||||
about_p1: string;
|
||||
about_p2: string;
|
||||
about_p2_link_label: string;
|
||||
about_p2_link_href: string;
|
||||
intro_prefix: string;
|
||||
intro_suffix: string;
|
||||
intro_brand: string;
|
||||
@@ -52,7 +51,6 @@ export const CONFIG_KEYS = [
|
||||
"about_p1",
|
||||
"about_p2",
|
||||
"about_p2_link_label",
|
||||
"about_p2_link_href",
|
||||
"intro_prefix",
|
||||
"intro_suffix",
|
||||
"intro_brand",
|
||||
@@ -97,7 +95,6 @@ export const CONFIG_GROUPS: { title: string; keys: (keyof SiteConfig)[] }[] = [
|
||||
"about_p1",
|
||||
"about_p2",
|
||||
"about_p2_link_label",
|
||||
"about_p2_link_href",
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user