modify Login UI for OIDC login

This commit is contained in:
Tao Chen
2024-10-31 08:57:31 +08:00
parent 40a2d889ed
commit c165f54ce8
6 changed files with 338 additions and 78 deletions
+6
View File
@@ -55,6 +55,12 @@ service.interceptors.response.use(
response => {
const res = response.data
// for the endpoint /login-options
// I'm not sure if this is a good idea
if (Array.isArray(res)) {
return res;
}
// if the custom code is not 20000, it is judged as an error.
if (res.code !== 0) {
ElMessage({