Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
1852017e
Commit
1852017e
authored
Jul 14, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改验证码开关变量名
parent
424d1189
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
register.vue
ruoyi-ui/src/views/register.vue
+5
-5
No files found.
ruoyi-ui/src/views/register.vue
View file @
1852017e
...
...
@@ -29,7 +29,7 @@
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-form-item>
<el-form-item
prop=
"code"
v-if=
"captcha
OnOff
"
>
<el-form-item
prop=
"code"
v-if=
"captcha
Enabled
"
>
<el-input
v-model=
"registerForm.code"
auto-complete=
"off"
...
...
@@ -104,7 +104,7 @@ export default {
code
:
[{
required
:
true
,
trigger
:
"change"
,
message
:
"请输入验证码"
}]
},
loading
:
false
,
captcha
OnOff
:
true
captcha
Enabled
:
true
};
},
created
()
{
...
...
@@ -113,8 +113,8 @@ export default {
methods
:
{
getCode
()
{
getCodeImg
().
then
(
res
=>
{
this
.
captcha
OnOff
=
res
.
captchaOnOff
===
undefined
?
true
:
res
.
captchaOnOff
;
if
(
this
.
captcha
OnOff
)
{
this
.
captcha
Enabled
=
res
.
captchaEnabled
===
undefined
?
true
:
res
.
captchaEnabled
;
if
(
this
.
captcha
Enabled
)
{
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
this
.
registerForm
.
uuid
=
res
.
uuid
;
}
...
...
@@ -134,7 +134,7 @@ export default {
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
this
.
loading
=
false
;
if
(
this
.
captcha
OnOff
)
{
if
(
this
.
captcha
Enabled
)
{
this
.
getCode
();
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment