I encountered a very strange problem. When the form submission in ExtJs was created, it took the operator ID from the session, then added a component with xtype as hidden in the form, and wrote a value to it. Something strange happened. There was no problem when doing it on one of the machines. But when I changed to another machine, it said it couldn’t assign values to it. This made me very depressed. I used a method to solve this problem, but I always feel that it is very unpleasant to solve it this way. Have you ever encountered this kind of problem? Please give me some advice.
Let me talk about my solution first
Add an ID to the hidden component and then trigger a method when the form is submitted to use Ext.getCmp('ID ').setValue(userId); takes effect. You can submit the data