修改完成
This commit is contained in:
@@ -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' }
|
||||
|
||||
Reference in New Issue
Block a user