- Issue content
Why are created hooks of all pages executed twice in Vue?
edited in Fri, 13 May 2022
The following figure shows my router configuration, which has only one flat layer, except app.vue The created hook of the project is only executed once, and the created life cycle of all other pages of the project is executed twice respectively (the project uses the tab component of mint UI, I don't know if it is related to this)
How to make created execute only once? It has caused a lot of repeated calls to the interface to get data
lock This question has been locked and the reply function has been disabled.