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(
123
123
latestPendingPath = null
124
124
route . path = pendingPath
125
125
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
+ }
126
135
}
127
136
}
128
137
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const { theme, page } = useData()
7
7
const hasLastUpdated = computed (() => {
8
8
const lu = theme .value .lastUpdated
9
9
10
- return lu !== undefined && lu !== false
10
+ return lu !== undefined && lu !== false && page . value . lastUpdated !== 0
11
11
})
12
12
13
13
const prefix = computed (() => {
You can’t perform that action at this time.
0 commit comments