Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-file-upload
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 b94da39f
authored
Jun 29, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微敏感信息获取授权同步
1 parent
5fc1ccf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/store/modules/app.js
src/store/modules/app.js
View file @
b94da39
...
...
@@ -121,14 +121,14 @@ const actions = {
window
.
location
.
href
=
`
${
wxUrl
}
?appid=
${
appid
}
&redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
}
}
else
{
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
const
{
corpId
,
agentId
}
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
const
{
baseURL
}
=
window
.
$fetchConfig
.
request
let
url
=
`
${
baseURL
}
/dj-scrm-wx-work-main/#/`
window
.
location
.
href
=
`
${
url
}
?redirect_uri=
${
redirectUrl
}
&corpId=
${
storage_corpId
.
corp
Id
}
`
window
.
location
.
href
=
`
${
url
}
?redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&corpId=
${
corpId
}
&agentId=
${
agent
Id
}
`
}
},
navigation
({
dispatch
})
{
let
{
sessionId
,
corpId
}
=
getParams
()
let
{
sessionId
,
corpId
,
agentId
}
=
getParams
()
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
if
(
!
corpId
)
corpId
=
storage_corpId
&&
storage_corpId
.
corpId
if
(
corpId
&&
storage_corpId
)
{
...
...
@@ -137,7 +137,9 @@ const actions = {
util
.
clearSessionId
()
}
}
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
})
let
dj_scrm_storage
=
{
corpId
}
if
(
agentId
)
dj_scrm_storage
.
agentId
=
agentId
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
dj_scrm_storage
)
const
storage_sessionId
=
util
.
getSessionId
()
if
(
sessionId
||
storage_sessionId
)
{
state
.
showWindow
=
true
...
...
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