Skip to content

Commit 06ac7bb

Browse files
committedMar 10, 2022
feat(devtools): use api.now()
1 parent db92787 commit 06ac7bb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎src/devtools.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
157157
title: 'Error during Navigation',
158158
subtitle: to.fullPath,
159159
logType: 'error',
160-
time: Date.now(),
160+
time: api.now(),
161161
data: { error },
162162
groupId: (to.meta as any).__navigationId,
163163
},
@@ -185,7 +185,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
185185
api.addTimelineEvent({
186186
layerId: navigationsLayerId,
187187
event: {
188-
time: Date.now(),
188+
time: api.now(),
189189
title: 'Start of navigation',
190190
subtitle: to.fullPath,
191191
data,
@@ -226,7 +226,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
226226
event: {
227227
title: 'End of navigation',
228228
subtitle: to.fullPath,
229-
time: Date.now(),
229+
time: api.now(),
230230
data,
231231
logType: failure ? 'warning' : 'default',
232232
groupId: (to.meta as any).__navigationId,

‎yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,9 @@
12201220
"@vue/shared" "3.2.31"
12211221

12221222
"@vue/devtools-api@^6.0.0":
1223-
version "6.0.12"
1224-
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.12.tgz#7b57cce215ae9f37a86984633b3aa3d595aa5b46"
1225-
integrity sha512-iO/4FIezHKXhiDBdKySCvJVh8/mZPxHpiQrTy+PXVqJZgpTPTdHy4q8GXulaY+UKEagdkBb0onxNQZ0LNiqVhw==
1223+
version "6.0.13"
1224+
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.13.tgz#33f8debe2d0239903b6fc8af10ace45ed3a4fab1"
1225+
integrity sha512-T34EjcArVqzANedEZe2kXQ+AZsld2z1ptJlkOGm87+blk+s6udnP4ze/NYqV8lz1o9AIivimN0xxteLlWiWQdg==
12261226

12271227
"@vue/reactivity-transform@3.2.29":
12281228
version "3.2.29"

0 commit comments

Comments
 (0)