jiabin 10 månader sedan
förälder
incheckning
7f696176bc
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      raycos_datacenter_api/src/main/resources/static/index.html

+ 2 - 2
raycos_datacenter_api/src/main/resources/static/index.html

@@ -168,12 +168,12 @@
                         },
                     });
 
-                    if (response.code==200) {
+                    if (response.data.code==200) {
                         const authUrl = generateAuthUrl(formData.region, uuid);
                         window.open(authUrl, '_blank');
                         ElMessage.success('提交成功');
                     } else {
-                        ElMessage.error(response.msg || '提交失败');
+                        ElMessage.error(response.data.msg || '提交失败');
                     }
                 } catch (error) {
                     console.error('Authorization error:', error);