Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
standalone-anyremote
Commits
ce904205
Commit
ce904205
authored
May 09, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复
parent
857a7f32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/App.vue
+4
-4
No files found.
src/App.vue
View file @
ce904205
...
@@ -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
==
'VideoCall
1
'
)
{
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment