Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-main
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f5fd161d
authored
Mar 01, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
f8c4d772
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
src/store/modules/app.js
src/views/common/accountList.vue
src/store/modules/app.js
View file @
f5fd161
...
...
@@ -66,10 +66,9 @@ const actions = {
console
.
log
(
'sessionId'
,
sessionId
)
window
.
$HTTP
=
new
Http
({
...
window
.
$fetchConfig
,
alert
:
Notify
,
headers
:
{
token
:
sessionId
}
})
},
login
({
dispatch
}
,
CORPID
)
{
login
({
dispatch
})
{
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
const
code
=
getParams
(
'code'
)
if
(
CORPID
)
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
:
CORPID
})
if
(
code
)
{
const
{
corpId
}
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
ssoApi
...
...
@@ -105,7 +104,7 @@ const actions = {
if
(
route
==
'common/overdue'
||
route
==
'common/nothing'
)
route
=
''
if
(
redirect_uri
)
{
let
[
URL
,
query
]
=
decodeURIComponent
(
redirect_uri
).
split
(
'?'
)
URL
=
`
${
URL
}
?sessionId=
${
userInfo
.
sessionId
}
&corpId=
${
corpId
}
}
`
URL
=
`
${
URL
}
?sessionId=
${
userInfo
.
sessionId
}
&corpId=
${
corpId
}
`
if
(
query
)
URL
=
`
${
URL
}
&
${
query
}
`
window
.
location
.
href
=
URL
}
...
...
@@ -168,11 +167,11 @@ const actions = {
login
({
dispatch
,
to
}
,
corpId
)
})
},
}
const
login
=
({
dispatch
,
to
}
,
corpId
)
=>
{
const
login
=
({
dispatch
,
to
})
=>
{
let
loginToken
=
util
.
getLocalStorage
(
'dj_scrm_loginToken'
)
let
userInfo
=
util
.
getLocalStorage
(
'dj_scrm_userInfo'
)
let
sessionId
=
util
.
getSessionId
()
...
...
@@ -185,7 +184,7 @@ const login = ({ dispatch, to }, corpId) => {
}
else
{
state
.
showWindow
=
false
util
.
showLoading
()
dispatch
(
'login'
,
corpId
)
dispatch
(
'login'
)
return
}
}
...
...
src/views/common/accountList.vue
View file @
f5fd161
...
...
@@ -90,7 +90,7 @@ export default {
this
.
hideLoading
()
if
(
redirect_uri
)
{
let
[
URL
,
query
]
=
decodeURIComponent
(
redirect_uri
).
split
(
'?'
)
URL
=
`
${
URL
}
?sessionId=
${
data
.
sessionId
}
&corpId=
${
corpId
}
}
`
URL
=
`
${
URL
}
?sessionId=
${
data
.
sessionId
}
&corpId=
${
corpId
}
`
if
(
query
)
URL
=
`
${
URL
}
&
${
query
}
`
window
.
location
.
href
=
URL
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment