统一平台资源中文展示并修复模拟订单状态
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 功能:静态检查用户地址列表的账户名称展示、标识降级与复制入口。
|
||||
* 版本:v1.0.0
|
||||
* 版本:v1.1.0
|
||||
*/
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
@@ -24,8 +24,8 @@ const fieldDisplay = source('src/views/shared/resource-list-field-display.ts');
|
||||
expectIncludes(resources, "listLabel: '用户账户'", '列表列名未改为用户账户');
|
||||
expectIncludes(resources, 'listRelationNameOnly: true', '用户地址未启用账户名称展示');
|
||||
expectIncludes(listPage, '<RelationNameText', '列表未使用账户名称组件');
|
||||
expectIncludes(fieldDisplay, 'return match ? optionLabel(match) : identity;', '关系名称缺失时未降级显示标识');
|
||||
expectIncludes(relationName, '用户唯一标识:${identity}', '缺少完整标识悬停提示');
|
||||
expectIncludes(fieldDisplay, "return match ? optionLabel(match) : '名称加载失败';", '关系名称缺失时未显示明确错误');
|
||||
expectIncludes(relationName, '`${identityLabel}:${identity}`', '缺少完整标识悬停提示');
|
||||
expectIncludes(relationName, '@click.stop="copyIdentity"', '缺少标识复制入口');
|
||||
|
||||
console.log('用户地址展示检查通过:账户名称、标识降级、悬停与复制入口均已覆盖。');
|
||||
console.log('用户地址展示检查通过:账户名称、加载失败提示、悬停与复制入口均已覆盖。');
|
||||
|
||||
Reference in New Issue
Block a user