feat(lookup): 用户前缀查找放宽至单字符——中文姓氏单字搜索(全链路)
契约 minLength 2→1 + 服务端 bounds 1..64 + admin 两处/App 一处前端门槛 同步放宽;防抖测试基线更新('s' 与合并后 'sta' 共两条)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -410,7 +410,9 @@ class _AlbumInviteSheetState extends ConsumerState<AlbumInviteSheet> {
|
||||
void _onSearchChanged(String text) {
|
||||
_debounce?.cancel();
|
||||
final query = text.trim();
|
||||
if (query.length < 2) {
|
||||
// 单字符即搜(2026-09-29 与服务端 1..64 bounds 对齐——中文姓氏单字);
|
||||
// 空串清空结果。
|
||||
if (query.isEmpty) {
|
||||
setState(() {
|
||||
_searching = false;
|
||||
_results = null;
|
||||
|
||||
Reference in New Issue
Block a user