美文网首页
Vue 快速构建以及问题

Vue 快速构建以及问题

作者: 忘记_3a6a | 来源:发表于2020-03-29 18:48 被阅读0次
  • 快速构建
npm init webpack hello-vue
vue init webpack hello-vue

npm i element-ui -S
npm install vue-router --save-dev
npm install sass-loader node-sass --save-dev
npm install 
export default new Router({
  mode: 'history', //去除路由路径#号
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorldcd
    },
    {
      path: '/main',
      name: 'Main',
      component: Main 
    }
  ]
})

模版


vs code 格式化代码快捷键

  • for Windows : Shift+Alt+F
  • for mac: Shift+Option+F

相关文章

网友评论

      本文标题:Vue 快速构建以及问题

      本文链接:https://www.haomeiwen.com/subject/iegnyhtx.html