Vue WeChat Pay

1. In this project, the single-page application of vue is used to carry out WeChat Pay. After being authorized by Wechat, the redirect jumps to an address bar like
http://wx.baidu.com/?code=02138KA72pfOCJ01MAB72mw9B7238KAZ&state=123-sharp/. If my original payment directory is http://wx.baidu.com/-sharp/pay, and then the address bar after being authorized by Wechat becomes http://wx.baidu.com/?code=02138KA72pfOCJ01MAB72mw9B7238KAZ&state=123-sharp/pay, then how should WeChat Pay"s authorized directory write or change the address bar at the front end of Wechat? kneel and beg for advice. Thank you

.

for example, if the payment directory is' http://www.baidu.com/-sharp/pay directory, then just write' http://www.baidu.com/-sharp/'in the authorized directory of WeChat Pay.


Wechat is not friendly to SPA's jump. It is recommended that you authorize login in another way.
there is also a hole in the payment directory
refer to this article


change the route pattern, remove the -sharp number, and try

.
Menu