Commit 2fefca61 by qlintonger xeno

强制添加转换idle

parent 604cc0c7
...@@ -628,6 +628,10 @@ export class AgoraHandle { ...@@ -628,6 +628,10 @@ export class AgoraHandle {
return false return false
} }
async setIdleYourself() {
this.AnyRemote.sendWSFromCall('0', 'SetIdle');
}
async archiveMark(fileData, type = 'video') { async archiveMark(fileData, type = 'video') {
this.AnyRemote.sendWSFromCall( this.AnyRemote.sendWSFromCall(
'-2', '-2',
......
...@@ -112,11 +112,15 @@ router.beforeEach(async (to, from, next) => { ...@@ -112,11 +112,15 @@ router.beforeEach(async (to, from, next) => {
} }
} }
}) })
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)) {
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