From 1d5aa0260234e327cae874e10a21e09f730f095b Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期二, 10 九月 2024 11:10:33 +0800
Subject: [PATCH] 更新

---
 se-ui/src/views/register.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/se-ui/src/views/register.vue b/se-ui/src/views/register.vue
index 43194ed..7e1276a 100644
--- a/se-ui/src/views/register.vue
+++ b/se-ui/src/views/register.vue
@@ -109,17 +109,17 @@
     };
   },
   created() {
-    this.getCode();
+    // this.getCode();
   },
   methods: {
     getCode() {
-      getCodeImg().then(res => {
-        this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
-        if (this.captchaEnabled) {
-          this.codeUrl = "data:image/gif;base64," + res.img;
-          this.registerForm.uuid = res.uuid;
-        }
-      });
+      // getCodeImg().then(res => {
+      //   this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+      //   if (this.captchaEnabled) {
+      //     this.codeUrl = "data:image/gif;base64," + res.img;
+      //     this.registerForm.uuid = res.uuid;
+      //   }
+      // });
     },
     handleRegister() {
       this.$refs.registerForm.validate(valid => {
@@ -136,7 +136,7 @@
           }).catch(() => {
             this.loading = false;
             if (this.captchaEnabled) {
-              this.getCode();
+              // this.getCode();
             }
           })
         }

--
Gitblit v1.9.3