mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复取色器最近使用颜色异常
This commit is contained in:
parent
f4c4c83a4d
commit
0e837eaa64
@ -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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user