Vue初始项目结构

V u e 初 始 项 目 结 构 Vue初始项目结构 Vue

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    
    
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    list-style: none;
    text-decoration: none;
}

在这里插入图片描述

import VueRouter from "vue-router"
import Vue from "vue"
import Frame from "./components/Frame"
import Login from "./components/Login"


Vue.use(VueRouter)

const router = new VueRouter({
    
    
    routes:[
        {
    
    
            path:"/",
            component:Frame,
            name:"frame"
        },
        {
    
    
            path:"/login",
            component:Login,
            name:"login"
        }
    ]

})

export default router

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41375318/article/details/115033713
今日推荐