修改授权回调配置
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 1m25s

This commit is contained in:
kk
2026-07-02 19:04:08 +08:00
parent f031501286
commit 6534723050
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -56,9 +56,9 @@ export default {
try {
this.statusText = '正在获取授权...';
// 构建回调地址(当前页面地址
const redirectUri = encodeURIComponent(
window.location.origin + window.location.pathname
// 回调地址必须是 HTTPS,使用配置文件中的地址
const redirectUri = config.authRedirectUri || (
window.location.origin.replace(/^http:/, 'https:') + window.location.pathname
);
const res = await gatewayGet('/api/v1/user/auth/url', {