Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
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 8114ca5a
authored
Apr 16, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 测试问题修改
1 parent
981df0ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
src/store/modules/app.js
src/store/modules/app.js
View file @
8114ca5
...
@@ -54,15 +54,15 @@ const actions = {
...
@@ -54,15 +54,15 @@ const actions = {
const
currentPath
=
window
.
location
.
href
;
const
currentPath
=
window
.
location
.
href
;
const
pathKeywords
=
[
'/department'
,
'/personage'
,
'/company'
];
const
pathKeywords
=
[
'/department'
,
'/personage'
,
'/company'
];
const
isTargetPath
=
pathKeywords
.
some
(
keyword
=>
currentPath
.
includes
(
keyword
));
const
isTargetPath
=
pathKeywords
.
some
(
keyword
=>
currentPath
.
includes
(
keyword
));
const
pathTitleMap
=
{
//
const pathTitleMap = {
'/department'
:
'美团消费部门月度总结'
,
//
'/department': '美团消费部门月度总结',
'/personage'
:
'美团消费个人月度总结'
,
//
'/personage': '美团消费个人月度总结',
'/company'
:
'美团消费公司月度总结'
//
'/company': '美团消费公司月度总结'
};
//
};
const
matchedPath
=
Object
.
keys
(
pathTitleMap
).
find
(
path
=>
currentPath
.
includes
(
path
));
//
const matchedPath = Object.keys(pathTitleMap).find(path => currentPath.includes(path));
if
(
matchedPath
)
{
//
if (matchedPath) {
document
.
title
=
pathTitleMap
[
matchedPath
];
//
document.title = pathTitleMap[matchedPath];
}
//
}
const
pushId
=
util
.
getQuery
(
'pushId'
);
const
pushId
=
util
.
getQuery
(
'pushId'
);
if
(
isTargetPath
&&
(
pushId
&&
(
pushId
*
1
)
>
500
))
{
if
(
isTargetPath
&&
(
pushId
&&
(
pushId
*
1
)
>
500
))
{
try
{
try
{
...
@@ -108,7 +108,7 @@ const actions = {
...
@@ -108,7 +108,7 @@ const actions = {
})
})
}
else
{
}
else
{
commit
(
'SET_AUTHORIZE_PAGE'
,
false
);
commit
(
'SET_AUTHORIZE_PAGE'
,
false
);
document
.
title
=
'登录中...'
;
//
document.title = '登录中...';
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
window
.
location
.
href
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
window
.
location
.
href
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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