Skip to content

Commit

Permalink
feat: 漏洞处理 #11251
Browse files Browse the repository at this point in the history
  • Loading branch information
lockiechen committed Dec 6, 2024
1 parent a7f24e3 commit a5bef61
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,10 @@ export default {

[UPDATE_ATOM_INPUT]: (state, { atom, newParam }) => {
try {
for (const key in newParam) {
if (Object.prototype.hasOwnProperty.call(newParam, key)) {
Vue.set(atom.data.input, key, newParam[key])
}
}
Vue.set(atom.data, 'input', {
...atom.data.input,
...newParam
})
} catch (e) {
console.warn(e, 'update atom input error', atom)
}
Expand Down

0 comments on commit a5bef61

Please sign in to comment.