Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
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
王立鹏
corporateCulture-qd
Commits
8b659c10
Commit
8b659c10
authored
Dec 09, 2025
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】 perf: 优化
parent
c5535c8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
onlineTime.vue
src/layoutCulture/components/onlineTime.vue
+4
-5
No files found.
src/layoutCulture/components/onlineTime.vue
View file @
8b659c10
...
...
@@ -75,14 +75,13 @@ import dayjs from 'dayjs'
import
utc
from
'dayjs/plugin/utc'
dayjs
.
extend
(
utc
)
const
{
width
,
height
}
=
useWindowSize
()
const
CONTAINER_WIDTH
=
130
,
CONTAINER_HEIGHT
=
170
,
const
{
height
}
=
useWindowSize
()
const
CONTAINER_HEIGHT
=
170
,
GAP
=
30
// CONTAINER_WIDTH = 130
const
maxSeconds
=
60
*
30
// 半小时
const
x
=
width
.
value
-
CONTAINER_WIDTH
-
GAP
const
x
=
GAP
const
y
=
height
.
value
-
CONTAINER_HEIGHT
-
GAP
const
currentSeconds
=
ref
(
0
)
...
...
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