Commit 8114ca5a by yancanhua

fix: 测试问题修改

1 parent 981df0ae
......@@ -54,15 +54,15 @@ const actions = {
const currentPath = window.location.href;
const pathKeywords = ['/department', '/personage', '/company'];
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 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');
if (isTargetPath && (pushId && (pushId * 1) > 500)) {
try {
......@@ -108,7 +108,7 @@ const actions = {
})
} else {
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`
}
} catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!