I recently made a change to my Vue-router configuration by adding mode:'history'
in the index file:
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'Daksh',
component: Daksh
},
{
path: '/about',
name: 'About',
component: About
},
{
path: '/work',
name: 'Work',
component: Work
}
]
})
Initially, everything seemed to be working fine when I tested it with hot reload mode. However, after running npm run build
, the functionality stopped working for some unknown reason.
If anyone has any insights or suggestions on how to resolve this issue, your help would be greatly appreciated! Thank you :)