Commit 14446d43 by yancanhua

fix: 文件标题优化

1 parent 8114ca5a
......@@ -64,7 +64,7 @@ const actions = {
// document.title = pathTitleMap[matchedPath];
// }
const pushId = util.getQuery('pushId');
if (isTargetPath && (pushId && (pushId * 1) > 500)) {
if (isTargetPath && (pushId && (pushId * 1) > 744)) {
try {
let { corpId, agentId } = util.getQuery();
const wwCode = util.getQuery('code');
......@@ -108,8 +108,13 @@ const actions = {
})
} else {
commit('SET_AUTHORIZE_PAGE', false);
// document.title = '登录中...';
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
//是否企微环境
const ua = navigator.userAgent.toLowerCase()
if (Boolean(ua.match(/MicroMessenger/i)) && Boolean(ua.match(/wxwork/i))) {
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
} else {
Notify({ message: '请使用企业微信打开', duration: 72000000 })
}
}
} catch (error) {
if (!error) error = '登录失败或无权限'
......
......@@ -133,7 +133,7 @@
</div>
</div>
</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div>
</template>
......
......@@ -116,7 +116,7 @@
</div>
</div>
</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div>
</template>
......
......@@ -70,7 +70,7 @@
<div class="tip" style="color: #ff8d1a" v-if="infoData.reportDetail.exceedCount > 0">温馨提示:您本月已超标1次,当月超标3次将有可能暂停招待权!</div>
</div>
</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!