there is only one page for the project at present, and there may be more single pages in the future. So my router is just like this for now:
import Vue from "vue"
import Router from "vue-router"
import index from "@/components/index"
Vue.use(Router);
export default new Router({
mode: "history",
routes: [
{
path: "/",
name: "index",
component: index
}
]
})
used
in the projectmode:history
so there is no such ugly thing as-sharp/ after that.
the problem now is that when you package it to the server, enter the URL, and then you will automatically match a /
to me. For example, when I type www.abc.com, the address bar will become www.abc.com/
. Could you tell me how to remove this?