宿迁图书馆pc端

yufan 2ab8ae753f Merge branch 'master' of http://139.224.55.203:10080/yufan/suqian_pc 4 months ago
public 414a53ead7 第一版 2 years ago
src 2ab8ae753f Merge branch 'master' of http://139.224.55.203:10080/yufan/suqian_pc 4 months ago
.env.development 0fbcbffd98 版权 1 year ago
.env.preview 0fbcbffd98 版权 1 year ago
.env.production 0fbcbffd98 版权 1 year ago
.env.pudong bdef6ce3e9 浦东 1 year ago
.env.shanxi f64212e182 logo 1 year ago
.eslintrc.js 414a53ead7 第一版 2 years ago
.gitignore ce4fe098b8 悬浮球图片,提交忽略node——moudel文件 2 years ago
README.md 414a53ead7 第一版 2 years ago
index.html 3e19587f13 增加版本控制 1 year ago
package-lock.json 414a53ead7 第一版 2 years ago
package.json 89d350e4ef 浦东 1 year ago
prettier.config.js 414a53ead7 第一版 2 years ago
tsconfig.json 414a53ead7 第一版 2 years ago
vite.config.ts 38bf1b0e35 打包 2 years ago
yarn-error.log 414a53ead7 第一版 2 years ago
yarn.lock 414a53ead7 第一版 2 years ago

README.md

配置

vue-i18n@next vue-router@4 vuex@next --save ant-design-vue@next --save axios --save nprogress --save less less-loader --save-dev

代码格式验证工具

@typescript-eslint/eslint-plugin -S @typescript-eslint/parser -S eslint -S eslint-config-prettier@7.2.0 -S //这个一定要是 7.2.0 版本,其他版本配置会报错 eslint-plugin-prettier -S eslint-plugin-vue -S prettier -S pretty-quick -S vue-eslint-parser -S

代码基础架构说明

|-- 根目录
    |-- dist 项目 build 之后的文件夹
    |-- public 项目静态资源,适合存放第三方压缩好的资源
    |-- src 主要的开发目录
    | |-- @type 项目共用的 type
    | |-- App.vue 页面渲染根节点
    | |-- permission.ts 权限
    | |-- main.ts 入口文件
    | |-- shims-vue.d.ts vue 文件类型的 type
    | |-- api http 请求相关
    | | |-- apiList.ts api 接口列表
    | | |-- axios.ts 业务请求封装
    | | |-- user.ts api 请求模块
    | |-- assets 存放静态资源,这个文件夹下的文件会走压缩流程
    | |-- components
    | | |-- index.ts 自动注册脚本
    | | |-- global 自动注册的全局组件
    | | |-- ...其他非全局注册的模块
    | |-- config 全局静态配置,不可更改项
    | |-- layout 页面页面骨架
    | |-- plugins 存放第三方插件
    | | |-- index.ts 插件挂载入口
    | |-- router 路由
    | | |-- index.ts 路由入口
    | |-- store vuex
    | | |-- modules 多个模块
    | | |-- index.ts 自动装载模块
    | | |-- app app 模块
    | |-- styles 全局样式,一句 ui 库主题样式
    | | |-- \_variables.less
    | | |-- test.less
    | |-- utils 常用函数以及其他有用工具
    | | |-- common.ts
    | |-- views 页面级组件
    | | |-- ..... 正常页面
    | | |-- login 登录页面
    |-- .editorconfig vscode 编辑器 设置
    |-- .env.development 开发环境配置
    |-- .env.preview 测试环境配置
    |-- .env.production 生产环境配置
    |-- .eslintignore eslint 要忽略的文件夹
    |-- .eslintrc.js eslint 规则配置
    |-- .gitattributes github 语言选项设置
    |-- .gitignore git 忽略的文件
    |-- .prettierrc.js 格式化插件配置
    |-- README.md 项目说明
    |-- babel.config.js babel 设置
    |-- global.d.ts 全局的 type
    |-- package.json  配置
    |-- tsconfig.json typescript 配置
    |-- typedoc.json 文档配置文件
    |-- vue.config.ts vue-cli 脚手架配置文件