|
|
@@ -312,10 +312,10 @@ function checkDirectoryRow(ctx) {
|
|
|
problems.push("directory row: no first INSERT INTO sys_menu segment");
|
|
|
return problems;
|
|
|
}
|
|
|
- const rowShape = /NULL\s*,\s*'money'\s*,\s*'payment-unified'\s*,\s*'\/payment\/unified'\s*,/;
|
|
|
+ const rowShape = /NULL\s*,\s*'el-icon-Wallet'\s*,\s*'payment-unified'\s*,\s*'\/payment\/unified'\s*,/;
|
|
|
if (!rowShape.test(segment)) {
|
|
|
problems.push(
|
|
|
- "directory row route_name='payment-unified' icon='money' route_path='/payment/unified' not found in expected column shape"
|
|
|
+ "directory row route_name='payment-unified' icon='el-icon-Wallet' route_path='/payment/unified' not found in expected column shape"
|
|
|
);
|
|
|
}
|
|
|
if (!/gen_random_uuid\s*\(\s*\)\s*,\s*NULL\s*,\s*'0'/.test(segment)) {
|
|
|
@@ -414,7 +414,7 @@ const CHECKS = [
|
|
|
["页面行 permission 逐页等于契约值且前缀正确", checkPagePermissions],
|
|
|
["7 个权限串齐全且无 merchant:save/merchant:delete", checkPermissionStrings],
|
|
|
["授权段包含 role 1 与 role 2", checkRoles],
|
|
|
- ["目录行 route_name='payment-unified' / icon='money' / parent_id NULL", checkDirectoryRow],
|
|
|
+ ["目录行 route_name='payment-unified' / icon='el-icon-Wallet' / parent_id NULL", checkDirectoryRow],
|
|
|
["每个 INSERT 都带 WHERE NOT EXISTS", checkIdempotentGuards],
|
|
|
["gen_random_uuid() 覆盖每段 sys_menu INSERT(≥3 段)", checkUuidDefaults],
|
|
|
["按钮 name → permission → 父页面 route_path 三元组正确", checkButtonParents],
|