修改完成

This commit is contained in:
2026-07-21 07:53:03 +08:00
parent 01d246c47b
commit ff60119277
172 changed files with 7982 additions and 2999 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ foreach ($pageFile in @('pages/genealogy/g05-genealogy-overview.vue', 'pages/tre
throw "Hard-coded route ID remains in $pageFile"
}
if ($pageFile -eq 'pages/genealogy/g05-genealogy-overview.vue') {
if ($page -notmatch "const genealogyId = ref\(''\)" -or $page -notmatch 'query\.genealogyId') {
if ($page -notmatch 'const\s+genealogyId\s*=\s*ref\(["'']["'']\)' -or $page -notmatch 'query\.genealogyId') {
throw 'G05 must own its explicit genealogyId route context'
}
} elseif ($page -notmatch 'genealogyContext') {
@@ -98,7 +98,7 @@ if ($applications -notmatch 'genealogyContext') {
}
$notifications = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/notification/n01-message-center.vue')
foreach ($method in @('readNotice', 'markAllRead', 'notice-state--list')) {
foreach ($method in @('openNotice', 'markAllRead', 'notice-state--list')) {
if ($notifications -notmatch [regex]::Escape($method)) { throw "Notification page does not expose local design interaction: $method" }
}
if ($notifications -match "@/utils/api\.js|\bappApi\b") { throw 'Notification design page must not connect the API layer' }