The effect of vue-router after router.replace (url) is the same as that of router.push (url)

The effect of

vue-router after executing router.replace (url) is the same as that of router.push (url). It is found that router.replace execution failed and entered onAbort callback.
current position http://localhost:8099/-sharp/community/create/pay?gid=262,
replace to / community/payment?success=1&gid=262 after success,
replace is not successful, what is the reason?

versions are as follows
"vue": "^ 2.3.3", "version": "2.5.16"
"vue-router": "^ 2.6.0", "version": "2.8.1"

Apr.10,2022

the problem lies in the global hook beforeEach

clipboard.png

Menu