forked from DebaucheryLibrarian/traxxx
Added page title function for Composition API components.
This commit is contained in:
@@ -8,6 +8,7 @@ import router from './router';
|
||||
import initStore from './store';
|
||||
import initUiObservers from './ui/observers';
|
||||
import initAuthObservers from './auth/observers';
|
||||
import setPageTitle from './set-page-title';
|
||||
|
||||
import { formatDate, formatDuration } from './format';
|
||||
|
||||
@@ -101,12 +102,7 @@ async function init() {
|
||||
},
|
||||
watch: {
|
||||
pageTitle(title) {
|
||||
if (title) {
|
||||
document.title = `traxxx - ${title}`;
|
||||
return;
|
||||
}
|
||||
|
||||
document.title = 'traxxx';
|
||||
setPageTitle(title); // for Options API components
|
||||
},
|
||||
},
|
||||
beforeCreate() {
|
||||
|
||||
Reference in New Issue
Block a user