Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
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
常超
founder_vue
Commits
56887d5b
Commit
56887d5b
authored
Sep 06, 2021
by
李萌萌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆接口调整
parent
2134920b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
src/views/login.vue
+18
-17
No files found.
src/views/login.vue
View file @
56887d5b
...
...
@@ -69,7 +69,7 @@ export default {
methods
:
{
init
()
{
this
.
formFlag
=
true
;
return
;
return
;
},
handleSubmit
(
type
)
{
const
that
=
this
;
...
...
@@ -89,7 +89,7 @@ export default {
this
.
form
.
password
=
md5
(
this
.
form
.
password
);
loginMD5Func
(
this
.
form
)
.
then
((
result
)
=>
{
const
res
=
result
.
data
;
const
res
=
result
.
data
;
if
(
res
.
result
===
"SUCCESS"
)
{
sessionStorage
.
setItem
(
"userdata"
,
JSON
.
stringify
(
res
.
data
));
let
platList
=
res
.
data
.
platList
;
...
...
@@ -103,21 +103,22 @@ export default {
// return true
}
}
if
(
!
flag
)
{
that
.
$router
.
push
({
path
:
"/403"
});
}
for
(
let
j
=
0
;
j
<
authList
.
length
;
j
++
)
{
if
(
authList
[
j
].
code
===
"DTLW-101"
)
{
// that.$message.success("登录成功!")
that
.
$router
.
push
({
path
:
"/home"
});
return
;
}
if
(
authList
[
j
].
code
===
"DTLW-102"
)
{
// that.$message.success("登录成功!")
that
.
$router
.
push
({
path
:
"/index"
});
return
;
}
}
that
.
$router
.
push
({
path
:
"/home"
});
// if (!flag) {
// that.$router.push({ path: "/403" });
// }
// for (let j = 0; j
<
authList
.
length
;
j
++
)
{
// if (authList[j].code === "DTLW-101") {
// // that.$message.success("登录成功!")
// that.$router.push({ path: "/home" });
// return;
// }
// if (authList[j].code === "DTLW-102") {
// // that.$message.success("登录成功!")
// that.$router.push({ path: "/index" });
// return;
// }
// }
}
else
{
if
(
type
==
"form"
)
{
this
.
$router
.
push
({
path
:
"/403"
});
...
...
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