uni-app uni-id微信web登录回调地址跳转不正确

uni-app uni-id微信web登录回调地址跳转不正确

操作步骤:

无代码 只是配置信息

预期结果:

授权登录成功后,应正常跳转到重定向的页面

实际结果:

uni-id-pages自动加了一个 /admin 导致路由解析错误

bug描述:

点击微信登录,跳转到微信登录页面 https://open.weixin.qq.com/connect/qrconnect?appid=wxb5d1d83f9f08b53a&redirect_uri=https%3A%2F%2Funi.ts-uav.cn%2Fadmin%2F%23%2Funi_modules%2Funi-id-pages%2Fpages%2Flogin%2Flogin-withoutpwd%3Fis_weixin_redirect%3Dtrue%26type%3Dweixin&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect 扫码后回到了 https://uni.ts-uav.cn/admin/admin/index.html#/uni_modules/uni-id-pages/pages/login/login-withoutpwd?is_weixin_redirect=true&type=weixin&code=061wJE0008ZdtU19zA000uI3CZ3wJE0H&state=STATE 页面多了一个admin 但是微信那边的 redirect_uri传递过去的时候是一个正确的网址


更多关于uni-app uni-id微信web登录回调地址跳转不正确的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于uni-app uni-id微信web登录回调地址跳转不正确的实战教程也可以访问 https://www.itying.com/category-93-b0.html


你前端代码的redirect_uri就传了 /admin 吧?

回到顶部