Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
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
smart-operation
so-manage-ui
Commits
7cb62d64
You need to sign in or sign up before continuing.
Commit
7cb62d64
authored
Jul 11, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录接口联调
parent
7f4a5fbf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/components/login-by-account.vue
src/components/login-by-account.vue
+1
-1
src/components/login-by-code.vue
src/components/login-by-code.vue
+2
-2
src/router/function.js
src/router/function.js
+3
-3
No files found.
src/components/login-by-account.vue
View file @
7cb62d64
...
@@ -185,7 +185,7 @@ onBeforeMount(() => {
...
@@ -185,7 +185,7 @@ onBeforeMount(() => {
state
.
checked
=
false
;
state
.
checked
=
false
;
}
}
});
});
const
{
loginForm
,
steploginFormRules
,
img
Id
,
imgSrc
,
identifyCode
,
hidePassword
,
rememberPassword
}
=
toRefs
(
state
);
const
{
loginForm
,
steploginFormRules
,
img
Src
,
hidePassword
,
rememberPassword
}
=
toRefs
(
state
);
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/login-by-code.vue
View file @
7cb62d64
...
@@ -94,7 +94,7 @@ const loginFormRef = ref(null);
...
@@ -94,7 +94,7 @@ const loginFormRef = ref(null);
const
getMsgCode
=
()
=>
{
const
getMsgCode
=
()
=>
{
loginFormRef
.
value
.
validateField
(
"
mobile
"
,
(
valid
)
=>
{
loginFormRef
.
value
.
validateField
(
"
mobile
"
,
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
axios
.
post
(
"
/
apaas/system/v5
/sms/verifyCode
"
,
{
phone
:
state
.
loginForm
.
mobile
}).
then
(({
data
})
=>
{
axios
.
post
(
"
/
v1/api/user
/sms/verifyCode
"
,
{
phone
:
state
.
loginForm
.
mobile
}).
then
(({
data
})
=>
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
countDownAction
();
countDownAction
();
}
else
{
}
else
{
...
@@ -123,7 +123,7 @@ const loginAction = () => {
...
@@ -123,7 +123,7 @@ const loginAction = () => {
loginFormRef
.
value
.
validate
((
valid
)
=>
{
loginFormRef
.
value
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
axios
axios
.
post
(
`/
apaas/system/v5
/user/phone/login`
,
{
.
post
(
`/
v1/api
/user/phone/login`
,
{
phone
:
state
.
loginForm
.
mobile
,
phone
:
state
.
loginForm
.
mobile
,
code
:
state
.
loginForm
.
code
,
code
:
state
.
loginForm
.
code
,
})
})
...
...
src/router/function.js
View file @
7cb62d64
...
@@ -278,9 +278,9 @@ function getViews(path) {
...
@@ -278,9 +278,9 @@ function getViews(path) {
var
menuToRouter
=
(
menu
)
=>
{
var
menuToRouter
=
(
menu
)
=>
{
menu
.
forEach
((
e
)
=>
{
menu
.
forEach
((
e
)
=>
{
e
.
name
=
getName
(
e
.
path
);
e
.
name
=
getName
(
e
.
path
);
// if (e.path.indexOf("#") != -
1) {
if
(
e
.
path
.
indexOf
(
"
#
"
)
!=
-
1
&&
e
.
new_window
!==
1
)
{
//
e.path = e.path.split("#")[1];
e
.
path
=
e
.
path
.
split
(
"
#
"
)[
1
];
//
}
}
if
(
e
.
children
&&
e
.
menuType
==
0
)
{
if
(
e
.
children
&&
e
.
menuType
==
0
)
{
// 其他层级作为文件夹,只提供父级
// 其他层级作为文件夹,只提供父级
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
...
...
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