Commit ce904205 by pangchong

feat: 修复

parent 857a7f32
...@@ -93,7 +93,7 @@ router.beforeEach(async (to, from, next) => { ...@@ -93,7 +93,7 @@ router.beforeEach(async (to, from, next) => {
next({ path: './' }) next({ path: './' })
} else { } else {
//视频通话页面 //视频通话页面
if (to.name == 'VideoCall1') { if (to.name == 'VideoCall') {
if (AnyR.agora && chatChannelState.value.currentState == CallState.calling) { if (AnyR.agora && chatChannelState.value.currentState == CallState.calling) {
next() next()
} else { } else {
...@@ -112,15 +112,15 @@ router.beforeEach(async (to, from, next) => { ...@@ -112,15 +112,15 @@ router.beforeEach(async (to, from, next) => {
} }
} }
}) })
const IdlePageAll = ['Contacts', 'Events', 'Experience', 'Resource']; const IdlePageAll = ['Contacts', 'Events', 'Experience', 'Resource']
//全局后置守卫 //全局后置守卫
router.afterEach(async (to) => { router.afterEach(async (to) => {
// 动态标题 // 动态标题
let pageTitle = !to.meta.hideBaseTitle ? config.baseTitle + ' - ' : '' let pageTitle = !to.meta.hideBaseTitle ? config.baseTitle + ' - ' : ''
if (to.meta.title != '') pageTitle += to.meta.title if (to.meta.title != '') pageTitle += to.meta.title
window.document.title = pageTitle; window.document.title = pageTitle
if (IdlePageAll.includes(to.name as string)) { if (IdlePageAll.includes(to.name as string)) {
AnyR?.agora.setIdleYourself(); AnyR?.agora.setIdleYourself()
} }
}) })
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment