fix: 修复取色器最近使用颜色异常

This commit is contained in:
pipipi-pikachu 2021-03-10 22:46:13 +08:00
parent f4c4c83a4d
commit 0e837eaa64

View File

@ -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 })