Explorar o código

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

RuoYi %!s(int64=2) %!d(string=hai) anos
pai
achega
fb6d93fbab
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 = {
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
       }