Binding problem between v-model in vue and store in vuex

there is an object in the data of the vue component. The properties in the object are bound with v-model, and then submit the data object with vuex"s commit, which will result in changing the value of the form to affect the data in store. What if you don"t copy this object?

Jun.14,2022

commit is a responsive data that needs to be dealt with by JSON.parse (JSON.stringify (data))


since it is a form operation, generally speaking, you only need shallow copy, {... obj}, you already know the reason, why not copy it?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb433-311e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb433-311e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?