page is refreshed, the recommend page is entered by default. I think there is no problem with the code, but there is no effect after refreshing
.import Vue from "vue"
import Router from "vue-router"
import Recommend from "components/recommend/recommend.vue"
import Singer from "components/singer/singer.vue"
import Rank from "components/rank/rank.vue"
import Search from "components/search/search.vue"
// vue
Vue.use(Router)
//
export default new Router({
routes: [
{
path: "/",
redirect: "/recommend"
},
{
path: "/recommend",
component: Recommend
},
{
path: "/singer",
component: Singer
},
{
path: "/rank",
component: Rank
},
{
path: "/search",
component: Search
}
]
})