Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
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
李苏
lxyl-vue
Commits
32e1bd8f
Commit
32e1bd8f
authored
May 29, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释无用接口
parent
347af5d7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
login.vue
src/views/login.vue
+7
-7
login1.vue
src/views/login1.vue
+7
-7
register.vue
src/views/register.vue
+7
-7
No files found.
src/views/login.vue
View file @
32e1bd8f
...
@@ -150,13 +150,13 @@ export default {
...
@@ -150,13 +150,13 @@ export default {
},
},
methods
:
{
methods
:
{
getCode
()
{
getCode
()
{
getCodeImg
().
then
(
res
=>
{
//
getCodeImg().then(res => {
this
.
captchaEnabled
=
res
.
captchaEnabled
===
undefined
?
true
:
res
.
captchaEnabled
;
//
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
if
(
this
.
captchaEnabled
)
{
//
if (this.captchaEnabled) {
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
//
this.codeUrl = "data:image/gif;base64," + res.img;
this
.
loginForm
.
uuid
=
res
.
uuid
;
//
this.loginForm.uuid = res.uuid;
}
//
}
});
//
});
},
},
getCookie
()
{
getCookie
()
{
const
username
=
Cookies
.
get
(
"username"
);
const
username
=
Cookies
.
get
(
"username"
);
...
...
src/views/login1.vue
View file @
32e1bd8f
...
@@ -207,13 +207,13 @@ export default {
...
@@ -207,13 +207,13 @@ export default {
},
},
methods
:
{
methods
:
{
getCode
()
{
getCode
()
{
getCodeImg
().
then
(
res
=>
{
//
getCodeImg().then(res => {
this
.
captchaEnabled
=
res
.
captchaEnabled
===
undefined
?
true
:
res
.
captchaEnabled
;
//
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
if
(
this
.
captchaEnabled
)
{
//
if (this.captchaEnabled) {
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
//
this.codeUrl = "data:image/gif;base64," + res.img;
this
.
loginForm
.
uuid
=
res
.
uuid
;
//
this.loginForm.uuid = res.uuid;
}
//
}
});
//
});
},
},
getCookie
()
{
getCookie
()
{
const
systemid
=
Cookies
.
get
(
"systemid"
);
const
systemid
=
Cookies
.
get
(
"systemid"
);
...
...
src/views/register.vue
View file @
32e1bd8f
...
@@ -112,13 +112,13 @@ export default {
...
@@ -112,13 +112,13 @@ export default {
},
},
methods
:
{
methods
:
{
getCode
()
{
getCode
()
{
getCodeImg
().
then
(
res
=>
{
//
getCodeImg().then(res => {
this
.
captchaEnabled
=
res
.
captchaEnabled
===
undefined
?
true
:
res
.
captchaEnabled
;
//
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
if
(
this
.
captchaEnabled
)
{
//
if (this.captchaEnabled) {
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
//
this.codeUrl = "data:image/gif;base64," + res.img;
this
.
registerForm
.
uuid
=
res
.
uuid
;
//
this.registerForm.uuid = res.uuid;
}
//
}
});
//
});
},
},
handleRegister
()
{
handleRegister
()
{
this
.
$refs
.
registerForm
.
validate
(
valid
=>
{
this
.
$refs
.
registerForm
.
validate
(
valid
=>
{
...
...
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