dreamworks 前端vue3+vite项目开发模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

  1. # 技术选型
  2. - 本项目采用的 vue3 + vite + js 脚手架搭建
  3. - 包管理工具为 Yarn
  4. # 代码规范
  5. > 随着团队的不断扩大,每个人都有自己的 coding 风格,但是如果一个项目中的代码存在多种风格,那对于代码的可维护性和可读性都大大减少,所以说一个项目规范对于前端团队来说很重要。
  6. ## Prettier
  7. 1、vscode插件 --- Prettier - Code formatter
  8. 2、.prettierrc文件
  9. # 全局状态管理
  10. > 使用 pinia
  11. # UI 框架
  12. https://tdesign.tencent.com/
  13. - 桌面端
  14. - Vue Next for Web
  15. - https://tdesign.tencent.com/vue-next/getting-started
  16. - 移动端
  17. - Vue3 for Mobile
  18. - https://tdesign.tencent.com/mobile-vue/getting-started
  19. # axios 封装
  20. > src/service
  21. - 灵活的拦截器;
  22. - 可以创建多个实例,灵活根据项目进行调整;
  23. - 每个实例,或者说每个接口都可以灵活配置请求头、超时时间等;
  24. - 取消请求(可以根据 url 取消单个请求也可以取消全部请求)。