# admin-demo **Repository Path**: mdaiwh/admin-demo ## Basic Information - **Project Name**: admin-demo - **Description**: 管理端模板 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-21 - **Last Updated**: 2024-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: TypeScript, Vue ## README # admin-demo ## 安装依赖 ```cli yarn install ``` ### 启动 ```cli yarn serve ``` ### 打包 ```cli yarn build ``` ### 初始化 ```cli yarn lint ``` ### 参考 vue 文档 See [Configuration Reference](https://cli.vuejs.org/config/). ### 目录结构 ```sh │ .browserslistrc # 用于配置兼容浏览器 │ .env.development │ .env.production │ .eslintrc.js # 代码风格检查配置文件 │ .gitignore # git配置文件 │ .prettierrc │ babel.config.js # babel 配置文件 │ LICENSE # 开源文件 │ package.json │ README.md │ tsconfig.json # ts配置文件 │ vue.config.js # vue配置文件 │ yarn.lock │ ├─dist # 代码压缩后的文件夹 ├─node_modules # 依赖 ├─public │ favicon.ico │ index.html │ └─src │ App.vue │ main.ts │ shims-vue.d.ts │ ├─api # 所有的请求api方法请写在这里,按模块分文件夹 │ │ index.ts │ │ │ └─login │ loginApi.ts │ ├─assets # 公共的静态资源 │ common.scss │ element-variables.scss │ logo.png │ ├─components # 公共组件 │ │ compontents.d.ts # 公共组件的声明文件 │ │ │ ├─common # 这个文件夹的组件会被默认注册为全局组件 │ │ aisanyi-content.vue │ │ aisanyi-form.tsx │ │ aisanyi-table.tsx │ │ FormLabel.vue │ │ UploadFile.vue │ │ UploadImg.vue │ │ │ └─mine │ mCodeVerify.vue │ ├─config # 各种配置的文件夹 │ ├─axios │ │ index.ts │ │ │ ├─canvas │ │ waterMark.ts │ │ │ ├─componentConfig # 用于指定那些公共组件不被全局注册 │ │ index.ts │ │ │ ├─element │ │ index.ts │ │ │ └─three │ loginBackground.ts │ ├─layout # 页面的架构 │ │ index.vue │ │ layout.config.ts # 架构配置文件 │ │ menu.config.ts │ │ README.md │ │ │ ├─config │ │ index.ts │ │ interfaceConfig.ts │ │ │ └─vertical │ content.vue │ header.vue │ index.vue │ menu.scss │ menu.vue │ menuChild.vue │ ├─router │ common.ts │ index.ts │ ├─store │ index.ts │ stateInterface.ts │ vuex.d.ts │ └─views │ Index.vue │ Login.vue │ Main.vue │ └─system ├─menu │ formConfig.ts │ Index.vue │ tableConfig.ts │ └─role formConfig.ts Index.vue tableConfig.ts ```