feat: 完成70%全局样式与可读性优化
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$page = Get-Content -LiteralPath (Join-Path $root 'pages/tree/t05-edit-member.vue') -Raw -Encoding UTF8
|
||||
|
||||
foreach ($forbidden in @('<text>人物编号</text>', '<text>业务用户</text>')) {
|
||||
if ($page.Contains($forbidden)) {
|
||||
throw "Edit-member form must not expose the internal identifier: $forbidden"
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $page.Contains('appApi.updatePerson(')) {
|
||||
throw 'Edit-member save contract must remain intact'
|
||||
}
|
||||
|
||||
Write-Output 'MEMBER-INTERNAL-IDENTIFIERS-VISIBILITY-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user