Go to file
huangweiming 4229d445f9 Merge branch 'dev'
# Conflicts:
#	.gitignore
#	txw-gxzx-web/yarn.lock
#	txw-kxtfwzx-web/yarn.lock
#	txw-mhzc-web/.eslintrc.js
#	txw-mhzc-web/package.json
#	txw-mhzc-web/src/pages/index/components/footer/index.vue
#	txw-mhzc-web/src/pages/index/components/logo/index.vue
#	txw-mhzc-web/src/pages/index/components/nav/index2.vue
#	txw-mhzc-web/src/pages/index/router/index.js
#	txw-mhzc-web/src/pages/index/router/routes.js
#	txw-mhzc-web/src/pages/index/views/fwsc/fwsc.vue
#	txw-mhzc-web/src/pages/index/views/fwsc/index.vue
#	txw-mhzc-web/src/pages/index/views/fwsc/jrsc.vue
#	txw-mhzc-web/src/pages/index/views/fwsc/sjlbc.vue
#	txw-mhzc-web/src/pages/index/views/fwsc/sjsc.vue
#	txw-mhzc-web/src/pages/index/views/fwsc/xqsc.vue
#	txw-mhzc-web/src/pages/index/views/glxtSy/glxtSy.vue
#	txw-mhzc-web/src/pages/index/views/home/mhNewMain.vue
#	txw-mhzc-web/src/pages/index/views/home2/index.vue
#	txw-mhzc-web/src/pages/index/views/main.vue
#	txw-mhzc-web/src/settings/index.js
#	txw-mhzc-web/vue.config.js
#	txw-mhzc-web/yarn.lock
#	txw-sso/txw-sso-service-biz/src/main/resources/bootstrap.yml
#	txw-tzzx-web/yarn.lock
#	txw-ytzx-web/yarn.lock
#	txw-yygl-web/yarn.lock
2026-04-06 09:23:39 +08:00
.claude feat: 工作台前端界面 2026-04-05 23:40:42 +08:00
docs/superpowers feat: 工作台前端界面 2026-04-05 23:40:42 +08:00
local-nodemodules fix: 依赖问题 2026-04-03 14:32:29 +08:00
script feat: 服务中心前端界面 2026-04-03 20:28:59 +08:00
txw-common Initial commit 2026-04-05 15:05:13 +08:00
txw-gateway Initial commit 2026-04-05 15:05:13 +08:00
txw-gxzx Initial commit 2026-04-05 15:05:13 +08:00
txw-gxzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-kxtfwzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-mhzc Initial commit 2026-04-05 15:05:13 +08:00
txw-mhzc-web Merge branch 'dev' 2026-04-06 09:23:39 +08:00
txw-sso Initial commit 2026-04-05 15:05:13 +08:00
txw-tzzx Initial commit 2026-04-05 15:05:13 +08:00
txw-tzzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-ytzx Initial commit 2026-04-05 15:05:13 +08:00
txw-ytzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-yygl Initial commit 2026-04-05 15:05:13 +08:00
txw-yygl-web Initial commit 2026-04-05 15:05:13 +08:00
.gitignore Initial commit 2026-04-05 15:05:13 +08:00
README.md fix: 依赖问题 2026-04-03 14:32:29 +08:00

碳信网 Web 项目本地开发指南

环境要求

  • Node.js >= 14建议 16+
  • Yarn >= 1.22

1. 安装依赖

node setup.js

脚本会自动为所有 web 项目创建本地包链接并安装依赖。Windows 和 Mac 通用。

如果网络不稳定,加 --prefer-offline 会优先从本地缓存获取包,速度更快。

2. 启动开发服务

# 以碳门户主页为例
cd txw-mhzc-web
yarn dev

其他项目同理:txw-gxzx-webtxw-kxtfwzx-webtxw-tzzx-webtxw-ytzx-webtxw-yygl-web

3. 项目说明

目录 说明
txw-gxzx-web 个人工作台
txw-kxtfwzx-web 科学碳体重中心
txw-mhzc-web 碳门户主页
txw-tzzx-web 碳资讯
txw-ytzx-web 碳云学堂
txw-yygl-web 运营管理
local-nodemodules 本地私有包ggzc-web 组件库)

4. 常见问题

Q: yarn install 报 @cssyq/ggzc-web not found

A: 需要先建立 symlink。执行第 1 步中的 for 循环即可。

Q: 启动报错 engine node incompatibility

A: 加 --ignore-engines 参数绕过。

Q: 需要更新 ggzc-web 组件库?

A: 修改 local-nodemodules/@cssyq/ggzc-web 后,直接 yarn dev 即可看到更新(已通过 symlink 关联)。