JXDS18FUJT 2 лет назад
Родитель
Сommit
30ab7bddc4
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/api/request.ts

+ 3 - 3
src/api/request.ts

@@ -32,13 +32,13 @@ request.interceptors.response.use((res: AxiosResponse<Common.Res>) => {
 
 					switch (import.meta.env.MODE) {
 						case "development":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h5.zzxcx.net/home&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
+							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h5.zzxcx.net/&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
 							break;
 						case "test":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h51.zzxcx.net/home&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
+							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h51.zzxcx.net/&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
 							break;
 						case "production":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h5.zzxcx.net/home&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
+							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3043c2c1decb01ed&redirect_uri=https://sdjk-h5.zzxcx.net/&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
 							break;
 					}
 				}, 2000)