From 0e837eaa64d18681a680a4aef743b12a6005ad82 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 10 Mar 2021 22:46:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=96=E8=89=B2?= =?UTF-8?q?=E5=99=A8=E6=9C=80=E8=BF=91=E4=BD=BF=E7=94=A8=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ColorPicker/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ColorPicker/index.vue b/src/components/ColorPicker/index.vue index f262bb75..d37dd8b4 100644 --- a/src/components/ColorPicker/index.vue +++ b/src/components/ColorPicker/index.vue @@ -173,7 +173,7 @@ export default defineComponent({ const maxLength = 10 if (recentColors.value.length > maxLength) { - recentColors.value = recentColors.value.slice(-maxLength) + recentColors.value = recentColors.value.slice(0, maxLength) } } }, 300, { trailing: true })