فهرست منبع

跳转小程序1

zhangyujun 3 سال پیش
والد
کامیت
85800b0ff3
1فایلهای تغییر یافته به همراه15 افزوده شده و 15 حذف شده
  1. 15 15
      src/api/request.ts

+ 15 - 15
src/api/request.ts

@@ -25,21 +25,21 @@ request.interceptors.response.use((res) => {
 				Toast("登录失败,需要再次登录")
 				
 
-				window.setTimeout(() => {
-
-					switch (import.meta.env.MODE) {
-						case "development":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h5.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
-							break;
-						case "test":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h51.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
-							break;
-						case "production":
-							location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h5.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
-							break;
-					}
-				}, 2000)
-				break;
+				// window.setTimeout(() => {
+
+				// 	switch (import.meta.env.MODE) {
+				// 		case "development":
+				// 			location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h5.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
+				// 			break;
+				// 		case "test":
+				// 			location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h51.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`)
+				// 			break;
+				// 		case "production":
+				// 			location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h5.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
+				// 			break;
+				// 	}
+				// }, 2000)
+				// break;
 			case 502:
 				if (res.data.msg == "微信授权无效,请重新授权") {
 					location.replace("https://jpcj-h5.zzxcx.net/home/test")