Explorar el Código

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

RuoYi hace 2 años
padre
commit
fb6d93fbab
Se han modificado 1 ficheros con 1 adiciones y 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 = {
14 14
     try {
15 15
       for (let i = 0; i < state.dict.length; i++) {
16 16
         if (state.dict[i].key == key) {
17
-          state.dict.splice(i, i)
17
+          state.dict.splice(i, 1)
18 18
           return true
19 19
         }
20 20
       }