mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Default to ‘none’ route type
This commit is contained in:
parent
d18339f4d6
commit
e852d275ef
1 changed files with 3 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ export class PageHead {
|
||||||
structuredData = null,
|
structuredData = null,
|
||||||
|
|
||||||
domain = getSiteUrl(),
|
domain = getSiteUrl(),
|
||||||
pathname,
|
pathname = '',
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
this.title = title
|
this.title = title
|
||||||
|
|
@ -234,6 +234,8 @@ export class PageHead {
|
||||||
}
|
}
|
||||||
|
|
||||||
get routeType () {
|
get routeType () {
|
||||||
|
if ( this.pathname.length < 2 ) return 'none'
|
||||||
|
|
||||||
return getRouteType( this.pathname )
|
return getRouteType( this.pathname )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue