Commit 14446d43 by yancanhua

fix: 文件标题优化

1 parent 8114ca5a
...@@ -64,7 +64,7 @@ const actions = { ...@@ -64,7 +64,7 @@ const actions = {
// 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) > 744)) {
try { try {
let { corpId, agentId } = util.getQuery(); let { corpId, agentId } = util.getQuery();
const wwCode = util.getQuery('code'); const wwCode = util.getQuery('code');
...@@ -108,8 +108,13 @@ const actions = { ...@@ -108,8 +108,13 @@ 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` 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) { } catch (error) {
if (!error) error = '登录失败或无权限' if (!error) error = '登录失败或无权限'
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div> <div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div> </div>
</template> </template>
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div> <div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div> </div>
</template> </template>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<div class="tip" style="color: #ff8d1a" v-if="infoData.reportDetail.exceedCount > 0">温馨提示:您本月已超标1次,当月超标3次将有可能暂停招待权!</div> <div class="tip" style="color: #ff8d1a" v-if="infoData.reportDetail.exceedCount > 0">温馨提示:您本月已超标1次,当月超标3次将有可能暂停招待权!</div>
</div> </div>
</div> </div>
<div v-show="!$store.state.app.authorizePage" class="loadingBox" >正在授权中...</div> <div v-show="!$store.state.app.authorizePage" class="loadingBox" ></div>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!