15 lines
590 B
PowerShell
15 lines
590 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
|
|
foreach ($pageName in @('t04-add-relative.vue', 't05-edit-member.vue')) {
|
|
$page = Get-Content -LiteralPath (Join-Path $root "pages/tree/$pageName") -Raw -Encoding UTF8
|
|
if ($page.Contains('<text>业务用户</text>') -or $page.Contains('appUserBindingHint')) {
|
|
throw "$pageName must not expose the internal business-user field"
|
|
}
|
|
if (-not $page.Contains('bindingMode')) {
|
|
throw "$pageName must retain the member binding payload contract"
|
|
}
|
|
}
|
|
|
|
Write-Output 'MEMBER-APP-USER-VISIBILITY-CONTRACT PASS'
|