Skip to content

litfBlog/blog

Repository files navigation

博客前端 litfBlog

本项目的其他仓库: 后端 小程序 后台

特性

  • 使用vue3开发, 使用script setup语法
  • 使用TypeScript
  • 可配置主题
  • 支持暗色模式

使用

推荐使用 yarn 替代 npm

克隆仓库

$ git clone https://github.com/litfa/blog.git

安装模块

$ yarn

运行

$ yarn serve

构建

$ yarn build

配置

使用.env配置

  • VUE_APP_ApiBaseutl api请求地址

代码规范

组件

在 src/components 中, 文件夹与文件名首字母大写

头部注释

推荐使用 vscode korofileheader 插件添加

代码规则

遵守 eslint 配置即可

变量名

使用驼峰命名法