Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-sop
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 3fbf0001
authored
Dec 13, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_0704' into 'master'
企微敏感信息获取授权同步 See merge request
!15
2 parents
fad756ad
44343f72
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
src/store/modules/app.js
vue.config.js
src/store/modules/app.js
View file @
3fbf000
...
@@ -121,14 +121,14 @@ const actions = {
...
@@ -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`
window
.
location
.
href
=
`
${
wxUrl
}
?appid=
${
appid
}
&redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
}
}
}
else
{
}
else
{
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
const
{
corpId
,
agentId
}
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
const
{
baseURL
}
=
window
.
$fetchConfig
.
request
const
{
baseURL
}
=
window
.
$fetchConfig
.
request
let
url
=
`
${
baseURL
}
/dj-scrm-wx-work-main/#/`
let
url
=
`
${
baseURL
}
/dj-scrm-wx-work-main/#/`
window
.
location
.
href
=
`
${
url
}
?redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&corpId=
${
storage_corpId
.
corp
Id
}
`
window
.
location
.
href
=
`
${
url
}
?redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&corpId=
${
corpId
}
&agentId=
${
agent
Id
}
`
}
}
},
},
navigation
({
dispatch
})
{
navigation
({
dispatch
})
{
let
{
sessionId
,
corpId
}
=
getParams
()
let
{
sessionId
,
corpId
,
agentId
}
=
getParams
()
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
if
(
!
corpId
)
corpId
=
storage_corpId
&&
storage_corpId
.
corpId
if
(
!
corpId
)
corpId
=
storage_corpId
&&
storage_corpId
.
corpId
if
(
corpId
&&
storage_corpId
)
{
if
(
corpId
&&
storage_corpId
)
{
...
@@ -137,7 +137,9 @@ const actions = {
...
@@ -137,7 +137,9 @@ const actions = {
util
.
clearSessionId
()
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
()
const
storage_sessionId
=
util
.
getSessionId
()
if
(
sessionId
||
storage_sessionId
)
{
if
(
sessionId
||
storage_sessionId
)
{
state
.
showWindow
=
true
state
.
showWindow
=
true
...
...
vue.config.js
View file @
3fbf000
...
@@ -50,7 +50,7 @@ const spritesmithFunction = data => {
...
@@ -50,7 +50,7 @@ const spritesmithFunction = data => {
return
`
${
shared
}
\n
${
perSprite
}
`
return
`
${
shared
}
\n
${
perSprite
}
`
}
}
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-
main-
lwk/'
,
// 本地调试时需登录时使用
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-lwk/'
,
// 本地调试时需登录时使用
// publicPath: './',
// publicPath: './',
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir
:
'dist'
,
// 生产环境构建文件的目录
outputDir
:
'dist'
,
// 生产环境构建文件的目录
...
...
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