# 新人类页面 **Repository Path**: miuseik/new-human-web ## Basic Information - **Project Name**: 新人类页面 - **Description**: new-human-web - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-06-15 - **Last Updated**: 2026-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # New-Human-Web > Recommended IDE : [VSCode](https://code.visualstudio.com/) ### Dependency ```sh npm install ``` ### Development ```sh npm run dev ``` 可以增加参数指定访问的后端地址,**注意 `npm run dev` 后要加 `--`** ```sh # 一般指定后端即可 npm run dev -- --back-host 192.168.1.67 # 连接对应的主机server # 前端对局域网开放,指定后端 back-host npm run dev -- --host 0.0.0.0 --back-host 192.168.1.67 ``` 也可使用环境变量: ```sh VITE_BACK_HOST=192.168.1.67 npm run dev ``` ##### Debug logging Debug时使用log划分五个等级: `fatal`, `error`, `warn`, `info`, `debug`. 可在`.env.local`中修改参数`VITE_LOG_LEVEL`实现改变 ```bash VITE_LOG_LEVEL=debug # 可修改为 fatal,error,warn,info,debug等 ``` ### Production ```sh npm run build ``` 如需用 Vite 生产模式启动: ```sh npm run prod -- --host 0.0.0.0 --back-host 192.168.0.102 --back-port 9101 ```