fix: frontend page title
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
b2f76391db
commit
1eff15f08d
3 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "Bullish",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
watch: {
|
||||||
|
'$route': {
|
||||||
|
handler: (to) => {
|
||||||
|
document.title = to.meta.title || 'Bullish'
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ export default new VueRouter({
|
||||||
path: '/bhavcopy',
|
path: '/bhavcopy',
|
||||||
name: 'bhavcopy',
|
name: 'bhavcopy',
|
||||||
component: BhavCopy,
|
component: BhavCopy,
|
||||||
|
meta: {
|
||||||
|
title: 'Bhav Copy - Equity'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue