This commit is contained in:
ljy
2026-08-11 01:44:32 +08:00
parent cfafec8a3c
commit 404613a109
130 changed files with 14869 additions and 1452 deletions
+26 -27
View File
@@ -1,32 +1,31 @@
# React + TypeScript + Vite
# 杜康好客官网
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
React + Vite + TypeScript 多页品牌官网。文案对齐《杜康好客-官网文案定稿》,视觉素材取自品牌传承 / 清香宝典 / 诗酒文化三份 PDF。
Currently, two official plugins are available:
## 开发
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
## React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
## Expanding the Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
```json
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
```bash
npm install
npm run dev
```
See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
## 构建
```bash
npm run build
npm run preview
```
## 路由
- `/` 首页
- `/brand` 品牌传承
- `/poetry` 诗酒文化
- `/qingxiang` 清香
- `/haoke` 好客模式
- `/system` 三端协同
- `/tech` 科技驱动
- `/subsidy` 酒厂实力
- `/partner` 城市合伙人
- `/tech-detail` 科技板块
- `/contact` 联系我们