File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,15 @@ export function createRouter(
123123 latestPendingPath = null
124124 route . path = pendingPath
125125 route . component = fallbackComponent ? markRaw ( fallbackComponent ) : null
126+ // reset page data
127+ route . data = {
128+ relativePath : '' ,
129+ title : '404' ,
130+ description : 'Not Found' ,
131+ headers : [ ] ,
132+ frontmatter : { } ,
133+ lastUpdated : 0
134+ }
126135 }
127136 }
128137 }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const { theme, page } = useData()
77const hasLastUpdated = computed (() => {
88 const lu = theme .value .lastUpdated
99
10- return lu !== undefined && lu !== false
10+ return lu !== undefined && lu !== false && page . value . lastUpdated !== 0
1111})
1212
1313const prefix = computed (() => {
You can’t perform that action at this time.
0 commit comments