Browse Source

fix:修复锁定问题

liu.shiyi 1 year ago
parent
commit
249c0009a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data-room-ui/packages/js/store/mutations.js

+ 1 - 1
data-room-ui/packages/js/store/mutations.js

@@ -214,7 +214,7 @@ export default {
       state.pageInfo.chartList = state.pageInfo.chartList?.map(chart => {
         return {
           ...chart,
-          locked: state.activeCodes.includes(chart.code) ? !config.locked : config.locked
+          locked: state.activeCodes.includes(chart.code) ? !config.locked : chart.locked
         }
       })
       saveTimeLineFunc(state, config.locked ? '解锁选中组件' : '锁定选中组件')