update 优化 三方授权页面 延迟跳转避免无法查看错误信息
This commit is contained in:
		| @ -31,12 +31,16 @@ const processResponse = async (res: any) => { | |||||||
|     setToken(res.data.access_token); |     setToken(res.data.access_token); | ||||||
|   } |   } | ||||||
|   ElMessage.success(res.msg); |   ElMessage.success(res.msg); | ||||||
|  |   setTimeout(() => { | ||||||
|     location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; |     location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; | ||||||
|  |   }, 2000); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| const handleError = (error: any) => { | const handleError = (error: any) => { | ||||||
|   ElMessage.error(error.message); |   ElMessage.error(error.message); | ||||||
|  |   setTimeout(() => { | ||||||
|     location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; |     location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; | ||||||
|  |   }, 2000); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| const callbackByCode = async (data: LoginData) => { | const callbackByCode = async (data: LoginData) => { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 疯狂的狮子Li
					疯狂的狮子Li