You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function getTitle (vm) {
|
|
const { title } = vm.$options
|
|
if (title) {
|
|
return typeof title === 'function'
|
|
? title.call(vm)
|
|
: title
|
|
}
|
|
}
|
|
export default {
|
|
mounted () {
|
|
const title = getTitle(this)
|
|
if (title) {
|
|
document.title = "Quartermaster - " + title
|
|
}
|
|
}
|
|
} |