Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
罗超
bigwood
Commits
4bb74318
Commit
4bb74318
authored
Nov 08, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
92d709de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
MainLayout.vue
src/layouts/MainLayout.vue
+8
-12
No files found.
src/layouts/MainLayout.vue
View file @
4bb74318
...
...
@@ -74,7 +74,6 @@ export default {
scrollStyle
:
{}
as
any
,
timer
:
0
,
isDadge
:
true
,
index
:
0
})
const
childPageTitle
=
ref
(
''
)
provide
(
DirtionmaryHelper
.
PAGE_TITLE_KEY
,
childPageTitle
)
...
...
@@ -86,15 +85,12 @@ export default {
},
}
onMounted
(()
=>
{
//组件挂载时的生命周期执行的方法
data
.
timer
=
setInterval
(()
=>
{
// 其他定时执行的方法
data
.
index
=
data
.
index
+
1
if
(
data
.
index
%
2
){
data
.
isDadge
=
false
}
else
{
data
.
isDadge
=
true
}
onMounted
(()
=>
{
setInterval
(()
=>
{
data
.
isDadge
=
false
setTimeout
(()
=>
{
data
.
isDadge
=
true
},
200
)
},
1000
);
})
return
{
...
...
@@ -126,8 +122,8 @@ export default {
fill
:
var
(
--q-primary
)
!important
;
}
.header-badge
{
width
:
5
px
;
height
:
5
px
;
width
:
6
px
;
height
:
6
px
;
border-radius
:
50%
;
position
:
absolute
;
margin-top
:
-40px
;
...
...
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