[+] Auto format title if null
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import {FormatUtils} from '@/logic/utils/format-utils';
|
||||||
|
|
||||||
export interface Index
|
export interface Index
|
||||||
{
|
{
|
||||||
@@ -23,6 +24,7 @@ export default class Navigator
|
|||||||
|
|
||||||
// Null case
|
// Null case
|
||||||
if (history == null) history = true;
|
if (history == null) history = true;
|
||||||
|
if (index.title == null) index.title = FormatUtils.toTitleCase(index.hash);
|
||||||
|
|
||||||
// Record history or not
|
// Record history or not
|
||||||
if (history)
|
if (history)
|
||||||
|
|||||||
Reference in New Issue
Block a user