As shown below:
data: { certificates: null }, mounted: function () { var __this = this; __this.certificates = getDictForkey("Education"); }
Use this to call variables in data
Vue life cycle reference official:Click to enter
When vue renders a page, some data may be dictionary operations, such as gender, where 0 and 1 are in the data, and the dictionary values are male and female. At this time, you need to obtain the "gender" dictionary on mounted, and then the page will be automatically rendered.
The above detailed explanation of using data variables in the Vue mounted method is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.