-1👍
Before the page is rendered, it wants to get the information while the element has not yet been created.
According to the life cycle of vue3 in the link below, you will understand this issue
https://vuejs.org/guide/essentials/lifecycle.html
You should receive the relevant information after the page is rendered
Source:stackexchange.com