点击菜单切换路由到/user,浏览器发出的实际地址是[服务器地址/index.html/#!/user ],因为在做微信开发,所以能否在浏览器发出requet前,让url变成这样https://open.weixin.qq.com/co...!%2Fuser&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect。谢谢
点击菜单切换路由到/user,浏览器发出的实际地址是[服务器地址/index.html/#!/user ],因为在做微信开发,所以能否在浏览器发出requet前,让url变成这样https://open.weixin.qq.com/co...!%2Fuser&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect。谢谢
2 回答1.5k 阅读✓ 已解决
3 回答795 阅读✓ 已解决
3 回答1.2k 阅读
加上这段代码,会在切换路由的时候判断是否切换到/user,是的话就会跳转到你的网址了。