File tree 1 file changed +15
-9
lines changed
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,21 @@ export const RouterLinkImpl = /*#__PURE__*/ defineComponent({
169
169
170
170
if ( ( __DEV__ || __FEATURE_PROD_DEVTOOLS__ ) && __BROWSER__ ) {
171
171
const instance = getCurrentInstance ( )
172
- watchEffect ( ( ) => {
173
- if ( ! instance ) return
174
- ; ( instance as any ) . __vrl_route = link . route
175
- } )
176
- watchEffect ( ( ) => {
177
- if ( ! instance ) return
178
- ; ( instance as any ) . __vrl_active = link . isActive
179
- ; ( instance as any ) . __vrl_exactActive = link . isExactActive
180
- } )
172
+ watchEffect (
173
+ ( ) => {
174
+ if ( ! instance ) return
175
+ ; ( instance as any ) . __vrl_route = link . route
176
+ } ,
177
+ { flush : 'post' }
178
+ )
179
+ watchEffect (
180
+ ( ) => {
181
+ if ( ! instance ) return
182
+ ; ( instance as any ) . __vrl_active = link . isActive
183
+ ; ( instance as any ) . __vrl_exactActive = link . isExactActive
184
+ } ,
185
+ { flush : 'post' }
186
+ )
181
187
}
182
188
183
189
return ( ) => {
You can’t perform that action at this time.
0 commit comments