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",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,14 @@
|
|||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
watch: {
|
||||
'$route': {
|
||||
handler: (to) => {
|
||||
document.title = to.meta.title || 'Bullish'
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ export default new VueRouter({
|
|||
path: '/bhavcopy',
|
||||
name: 'bhavcopy',
|
||||
component: BhavCopy,
|
||||
meta: {
|
||||
title: 'Bhav Copy - Equity'
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue