Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
f1e3e580
Commit
f1e3e580
authored
Sep 13, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d918cf6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
23 deletions
+12
-23
login.js
src/api/login.js
+6
-6
login.vue
src/pages/user/login.vue
+6
-17
No files found.
src/api/login.js
View file @
f1e3e580
...
...
@@ -77,9 +77,9 @@ export function setUserCodeCallBack(data) {
}
export
function
setUserAutoLogin
(
data
)
{
return
request
({
url
:
'/QYWeChat/SetUserAutoLogin'
,
method
:
'post'
,
data
})
}
return
request
({
url
:
'/QYWeChat/SetUserAutoLogin'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/user/login.vue
View file @
f1e3e580
...
...
@@ -97,8 +97,8 @@
<
script
>
import
{
setUser
CodeCallBack
,
setUser
AutoLogin
setUser
AutoLogin
,
setUser
CodeCallBack
}
from
"../../api/login"
;
export
default
{
meta
:
{
...
...
@@ -132,11 +132,12 @@
)
{
this
.
isAdminUser
=
true
;
}
else
{
this
.
isAdminUser
=
false
;
this
.
getWeChat
();
}
}
else
if
(
this
.
$route
.
query
.
wxworkAutoLogin
&&
this
.
$route
.
query
.
wxworkAutoLogin
==
"1"
)
{
}
else
if
(
this
.
$route
.
query
.
wxworkAutoLogin
&&
this
.
$route
.
query
.
wxworkAutoLogin
==
"1"
)
{
this
.
autoLogin
();
}
else
{
this
.
autoLoginLoading
=
true
;
...
...
@@ -165,7 +166,6 @@
mark
:
"LinYangERP"
}).
then
(
r
=>
{
if
(
r
.
Data
!=
""
)
{
alert
(
r
.
data
);
location
.
href
=
r
.
Data
;
}
else
{
this
.
showErrorMsg
(
...
...
@@ -174,17 +174,6 @@
}
});
},
goToAutoLogin
()
{
if
(
document
.
URL
.
indexOf
(
"?loginId="
)
!=
-
1
)
{
let
url
=
`http://
${
window
.
location
.
host
}
/#/autologin?
${
document
.
URL
.
substring
(
document
.
URL
.
indexOf
(
"?"
)
+
1
,
document
.
URL
.
length
)}
`
;
document
.
location
.
href
=
url
;
}
},
callBackUserInfo
(
code
)
{
setUserCodeCallBack
({
appcode
:
"LinYangERP"
,
...
...
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