Commit 8114ca5a by yancanhua

fix: 测试问题修改

1 parent 981df0ae
...@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!