If the attributes in your data have dependencies, it is recommended to use calculated attributes directly, and it is best to handle your function logic by creating a new method yourself, so that your entire component will be clearer. Some personal suggestions.
Separate data and control, do not do this kind of operation in data.
If the attributes in your data have dependencies, it is recommended to use calculated attributes directly, and it is best to handle your function logic by creating a new method yourself, so that your entire component will be clearer. Some personal suggestions.