In this article (Vue.js - How to remove hashbang #! from url?), teach how to remove # from URL.
I'm making an application that need to have # in URL, but when I access a route for the first time, don't load (or don't change the content), but if I refresh, the page load successfully.
EDIT1: I forgot to share my Vue Router.
import Vue from 'vue'
import Router from 'vue-router'
//import axios from 'axios'
import ListComponent from '../pages/ListComponent'
import Formulario from '../pages/Formulario'
const BASE_URL = process.env.VUE_APP_FRONT_SET_URL;
console.log(BASE_URL);
Vue.use(Router)
export default new Router({
       mode: 'hash',
    routes:[
        {
            path: '/formulario',
            name: 'formulario',
            component: Formulario
        },
         {
            path: '/:nr_atendimento' ,
            name: 'list',
            component: ListComponent
        },
    ]
})
And no. console don't show any errors.
 
    