Problem: Interface data cannot be edited after being successfully assigned to el-Input

The reason:

Obj. b is not declared when the Vue instance is created, and therefore is not converted to a responsive property by Vue, which naturally does not trigger the view update

The solution:

The view changes by assigning an initial value to the data or by using Vue’s global API $set() to treat the property as a responsive property

Example:

Method one:

If the initialization does not work, then look at the interface value

Method 2:

this.$set(this.input, 'description', 'Landlord could not be reached')
Copy the code

Reference;