fix 修复 字典缓存删除方法参数错误问题

This commit is contained in:
疯狂的狮子Li 2023-08-23 22:21:03 +08:00
parent 3a82fb82e8
commit 148c7c588e

View File

@ -14,7 +14,7 @@ const mutations = {
try { try {
for (let i = 0; i < state.dict.length; i++) { for (let i = 0; i < state.dict.length; i++) {
if (state.dict[i].key == key) { if (state.dict[i].key == key) {
state.dict.splice(i, i) state.dict.splice(i, 1)
return true return true
} }
} }