Files
weihai_erp/README.md
T
xiaojibeier b575b9c193 111
2026-07-06 19:57:01 +08:00

49 lines
1.7 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# weihai_erp
威海项目 ERP 前端(Vue 3 + Vite + Tauri
## 开发
```sh
npm install
npm run dev
npm run build
```
## 构建号 `buildId.json`
路径:[`src/config/buildId.json`](src/config/buildId.json)
由 [`scripts/bump-build-id.mjs`](scripts/bump-build-id.mjs) 在 **`npm run build` 前**`prebuild`)自动生成;`npm run dev` 不会改这个文件。
| 字段 | 说明 |
|------|------|
| `buildId` | 11 位构建号:`YYYYMMDD`(8 位)+ 当天第几次构建(3 位,001~999),如 `20260706004` |
| `generatedAt` | 生成时间(ISO |
侧栏「更新说明」弹窗底部会显示 `版本 · build 构建号`(见 [`src/layouts/index.vue`](src/layouts/index.vue))。与 [`src/data/appChangelog.js`](src/data/appChangelog.js) 里的 `APP_VERSION` 无关:版本号手动维护,构建号每次正式 build 自动递增。
### `git pull` 提示本地修改会被覆盖
本地执行过 `npm run build` 后,`buildId.json` 常有未提交改动;若远程也更新了同一文件,`git pull` 会中止并提示:
```text
Your local changes to the following files would be overwritten by merge:
src/config/buildId.json
Please commit your changes or stash them before you merge.
```
**一般不需要保留或提交这次本地改动**,丢弃后拉取即可(拉完下次 build 会重新生成):
```sh
git restore src/config/buildId.json
git pull
```
若确需暂存本地改动:`git stash``git pull``git stash pop`
## 变更记录
- **应用内「更新说明」弹层:** [`src/data/appChangelog.js`](src/data/appChangelog.js)
- **多维表技术长文:** [`docs/多维表格(MDT)_改动纪要.md`](docs/多维表格(MDT)_改动纪要.md)