fix(generator): nested route missing trailingSlash (#8237)

[release]
This commit is contained in:
Cain Hall 2020-11-26 01:24:13 +11:00 committed by GitHub
parent 135456f051
commit b80056c96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,6 +296,10 @@ export default class Generator {
let html let html
const pageErrors = [] const pageErrors = []
if (this.options.router && this.options.router.trailingSlash && route[route.length - 1] !== '/') {
route = route + '/'
}
const setPayload = (_payload) => { const setPayload = (_payload) => {
payload = defu(_payload, payload) payload = defu(_payload, payload)
} }