From 9d3880a8aa77f8fac6f88ffde33e50ba42cb9d8a Mon Sep 17 00:00:00 2001 From: zhx Date: Tue, 19 May 2026 18:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/views/props/resource-config.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/src/views/props/resource-config.vue b/apps/src/views/props/resource-config.vue index 40694ea..369392e 100644 --- a/apps/src/views/props/resource-config.vue +++ b/apps/src/views/props/resource-config.vue @@ -85,6 +85,8 @@ const adminFreeOptions = [ ]; const DEFAULT_STORE_CURRENCY_TYPES = 'GOLD'; const DEFAULT_STORE_VALID_DAYS = '7'; +const DEFAULT_RESOURCE_CONFIG_TYPE = + (PROPS_RESOURCE_CONFIG_TYPES[0]?.value as string | undefined) ?? 'AVATAR_FRAME'; const query = reactive({ cursor: 1, @@ -97,9 +99,7 @@ const query = reactive({ limit: 20, name: '', sysOrigin: sysOriginOptions.value[0]?.value ?? 'LIKEI', - type: (PROPS_RESOURCE_CONFIG_TYPES[0]?.value ?? 'AVATAR_FRAME') as - | string - | undefined, + type: DEFAULT_RESOURCE_CONFIG_TYPE as string | undefined, }); const columns = [ @@ -203,7 +203,7 @@ function resetColumnFilter(key: unknown) { break; } case 'typeName': { - query.type = undefined; + query.type = DEFAULT_RESOURCE_CONFIG_TYPE; break; } } @@ -243,7 +243,7 @@ function resetAllColumnFilters() { query.del = undefined; query.id = ''; query.name = ''; - query.type = undefined; + query.type = DEFAULT_RESOURCE_CONFIG_TYPE; void loadData(true); } @@ -598,7 +598,6 @@ loadData(true);