I write a function to solve this problem. support both vue 2.7 & vue 3.
You can simply call $reload()
in template or reload()
in setup to force current component go through lifecycle again.
Here is Live Demo and Project.
I will be so happy if you can have a try and give me some feedback, thanks for reading.