as shown in the figure: the landing page needs to be displayed separately, and now it is all in the middle of the beginning and the end
=
router.js
import Vue from "vue"
import Router from "vue-router"
import Index from "../components/index"
import Classify from "../components/classify"
import Cart from "../components/cart"
import Center from "../components/center"
import Login from "../components/welcome"
Vue.use(Router)
export default new Router({
mode: "history",
routes: [
{
path: "/welcome",
component: Login
},
{
path: "/",
component: Index
},
{
path: "/classify",
component: Classify
},
{
path: "/cart",
component: Cart
},
{
path: "/center",
component: Center
}
]
})