Vue项目的创建

99 阅读1分钟
页面分析

1、静态页面 + 静态组件

2、发axios请求

3、vuex

4、组件获取仓库数据,动态展示数据

基本配置

1、关闭 eslint :在根目录下创建 vue.config.js 文件

module.exports = {
  // 关闭eslint
  lintOnSave: false
}

2、配置 @ 符:创建 jsconfig.json 文件

{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"]
    }
  },
  "exclude": ["node_modules", "dist"]
}