Explorar o código

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

RuoYi hai 1 ano
pai
achega
491b0f3db8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ruoyi-ui/src/store/modules/dict.js

+ 1 - 1
ruoyi-ui/src/store/modules/dict.js

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