0๐
Itโs a little hacky, but this should work:
Before the VueRouter
instantiation, add:
if (!window.location.pathname.endsWith('test/')) {
window.location.replace(
`${window.location.href}`.replace(
window.location.pathname,
`${window.location.pathname}`.replace(
'/test',
'/test/')
)
)
}
- [Vuejs]-Reuse my Vue component that contains x-template?
- [Vuejs]-How to get methods declared in vue inside swiper events
-1๐
GO to your routes.js and change this
const router = new VueRouter({
routes: []
to this
const router = new VueRouter({
mode: 'history',
routes:[]
})
Rebuild your project and re-upload
Vue reference: https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
- [Vuejs]-V-model with dynamically added property
- [Vuejs]-How to create the perfect autosize textarea?
Source:stackexchange.com