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 981df0ae
authored
Apr 16, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 新增登录中 标题
1 parent
75eb9102
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
src/store/modules/app.js
vue.config.js
src/store/modules/app.js
View file @
981df0a
...
@@ -54,8 +54,17 @@ const actions = {
...
@@ -54,8 +54,17 @@ 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
=
{
'/department'
:
'美团消费部门月度总结'
,
'/personage'
:
'美团消费个人月度总结'
,
'/company'
:
'美团消费公司月度总结'
};
const
matchedPath
=
Object
.
keys
(
pathTitleMap
).
find
(
path
=>
currentPath
.
includes
(
path
));
if
(
matchedPath
)
{
document
.
title
=
pathTitleMap
[
matchedPath
];
}
const
pushId
=
util
.
getQuery
(
'pushId'
);
const
pushId
=
util
.
getQuery
(
'pushId'
);
if
(
isTargetPath
&&
(
pushId
&&
(
pushId
*
1
)
>
744
))
{
if
(
isTargetPath
&&
(
pushId
&&
(
pushId
*
1
)
>
500
))
{
try
{
try
{
let
{
corpId
,
agentId
}
=
util
.
getQuery
();
let
{
corpId
,
agentId
}
=
util
.
getQuery
();
const
wwCode
=
util
.
getQuery
(
'code'
);
const
wwCode
=
util
.
getQuery
(
'code'
);
...
@@ -99,6 +108,7 @@ const actions = {
...
@@ -99,6 +108,7 @@ const actions = {
})
})
}
else
{
}
else
{
commit
(
'SET_AUTHORIZE_PAGE'
,
false
);
commit
(
'SET_AUTHORIZE_PAGE'
,
false
);
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
)
{
...
...
vue.config.js
View file @
981df0a
...
@@ -5,7 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
...
@@ -5,7 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
// page title
// page title
const
name
=
defaultSettings
.
title
||
'
授权
中...'
const
name
=
defaultSettings
.
title
||
'
登录
中...'
// 生产环境,测试和正式
// 生产环境,测试和正式
const
IS_PROD
=
[
'production'
,
'prod'
].
includes
(
process
.
env
.
NODE_ENV
)
const
IS_PROD
=
[
'production'
,
'prod'
].
includes
(
process
.
env
.
NODE_ENV
)
...
...
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