Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
1852017e
Commit
1852017e
authored
Jul 14, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改验证码开关变量名
parent
424d1189
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ruoyi-ui/src/views/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