Subscribe on changes!

The onActivated function does not trigger under specific conditions

avatar
Nov 13th 2023

Vue version

3.3.4

Link to minimal reproduction

none

Steps to reproduce

### 1.This is my router configuration image 2. image ### 3. use onActivated/onMounted in my components image

4.Visit the following address

  1. http://localhost/contract/list

  2. http://localhost/contract/list?a=1 After switching, the page needs to be refreshed twice

What is expected?

  1. http://localhost/contract/list

  2. http://localhost/contract/list?a=1

These two access addresses have the same lifecycle as Vue; Console printing: onMounted onActivated

What is actually happening?

1. http://localhost/contract/list Console printing: onMounted onActivated

2. http://localhost/contract/list?a=1 Console printing: onMounted

System Info

No response

Any additional comments?

No response

avatar
Nov 13th 2023

We can't debug screenshots. Please follow the issue guidelines and provide a reproduction.