Ver Fonte

fix: 优化打回逻辑

cuiyalong há 9 meses atrás
pai
commit
cd736ea7fb
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      frontend/src/views/ReviewList.vue

+ 3 - 2
frontend/src/views/ReviewList.vue

@@ -665,6 +665,8 @@ const tableEvents = {
         if (Array.isArray(rowArr) && rowArr.length > 0) {
             rowArr.forEach(row => {
                 const lua = getLuaParams(row)
+                lua.state = info.state
+                lua.reason = info.reason
                 luaArr.push(lua)
             })
         } else {
@@ -676,8 +678,7 @@ const tableEvents = {
         const param = {
             stype: info.stype,
         }
-        lua.state = info.state
-        lua.reason = info.reason
+        
         ServerActionUpdateCodeState({ lua: luaArr, param }).then(r => {
             if (r.err === 1) {
                 ElMessage({