From 8491d97001bb2dcb626bc7bf4916d8f6c85939ea Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期一, 18 九月 2023 15:05:09 +0800
Subject: [PATCH] 优化菜单管理类型为按钮状态可选
---
src/views/register.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/register.vue b/src/views/register.vue
index 8d2d28d..5e21769 100644
--- a/src/views/register.vue
+++ b/src/views/register.vue
@@ -37,7 +37,7 @@
<template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
</el-input>
</el-form-item>
- <el-form-item prop="code" v-if="captchaOnOff">
+ <el-form-item prop="code" v-if="captchaEnabled">
<el-input
size="large"
v-model="registerForm.code"
@@ -70,7 +70,7 @@
</el-form>
<!-- 搴曢儴 -->
<div class="el-register-footer">
- <span>Copyright 漏 2018-2022 ruoyi.vip All Rights Reserved.</span>
+ <span>Copyright 漏 2018-2023 ruoyi.vip All Rights Reserved.</span>
</div>
</div>
</template>
@@ -116,7 +116,7 @@
const codeUrl = ref("");
const loading = ref(false);
-const captchaOnOff = ref(true);
+const captchaEnabled = ref(true);
function handleRegister() {
proxy.$refs.registerRef.validate(valid => {
@@ -132,7 +132,7 @@
}).catch(() => {});
}).catch(() => {
loading.value = false;
- if (captchaOnOff) {
+ if (captchaEnabled) {
getCode();
}
});
@@ -142,8 +142,8 @@
function getCode() {
getCodeImg().then(res => {
- captchaOnOff.value = res.captchaOnOff === undefined ? true : res.captchaOnOff;
- if (captchaOnOff.value) {
+ captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+ if (captchaEnabled.value) {
codeUrl.value = "data:image/gif;base64," + res.img;
registerForm.value.uuid = res.uuid;
}
--
Gitblit v1.9.3