he “data“ option should be a function that returns a per-instance value in component definitions.

1. The data code is written like this.
insert image description here
2. Just change the data into a function.
insert image description here

Guess you like

Origin blog.csdn.net/qq_48203828/article/details/128015301