i used Vue 2.6 for little App with flipbook-vue, and i mounted it in subfolder of my Laravel APP in public/dist/
.
I need to get params from url, and i do it like that:
Router index.js:
export default new Router({
mode: 'history',
routes: [{ path: "/:numer", component: Newspaper }]
})
vue.config.js:
module.exports = {
publicPath: '/gazetka/',
}
And in Vue component i use $route.params
to get this params.
The problem is that Vue reads the subfodler name dist
to me as a parameter.
How do I get around it?
I tried .htaccess but it doesn’t work locally.