From 95068e8dde4c94c918bc4606d2f56b29e2169baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 15 Nov 2024 13:05:36 +0800 Subject: [PATCH] fix: 'args' is declared but its value is never read. --- src/App.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 363d435..5a8ccf2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,10 +51,10 @@ onMounted(() => { validation-visibility="live" validation="validateGroup" :validation-messages="{ - validateGroup: ({ name, args }) => { - return `字段 ${name} 必须包含 '测试' 字符串。` - }, - }" + validateGroup: ({ name/* , args */ }) => { + return `字段 ${name} 必须包含 '测试' 字符串。` + }, +}" #default="{ id, messages, fns, classes }" > @@ -76,10 +76,10 @@ onMounted(() => { name="flavors" label="最喜欢的冰淇淋口味" :options="{ - 'vanilla': '香草', - 'chocolate': '巧克力', - 'strawberry': '草莓', -}" + 'vanilla': '香草', + 'chocolate': '巧克力', + 'strawberry': '草莓', + }" validation="required|min:2" />