[BEL] 修复生产构建 GoAdmin 外壳启动白屏 #142
Closed
opened 2026-08-29 16:58:59 +08:00 by ila
·
4 comments
No Branch/Tag Specified
dev
feat/183-bell-contact-schedule
docs/171-coordination-e2e-wiki
feature/155-coordination-e2e
docs/168-sync-coordination-wiki
feature/154-coordination-deployment
docs/152-153-connectors
feature/153-event-evidence-connector
feature/152-brain-control
docs/151-machine-identity-acceptance
task/151-machine-identity
docs/150-contract-acceptance
docs/148-149-contract-acceptance
feature/149-runtime-status-contract
feature/150-event-evidence-contract
feature/148-source-config-contract
docs/8-mvp-acceptance
feature/145-sense-e2e-isolation-cleanup
feature/134-bell-independent-e2e
feature/142-bell-ui-shell-startup
feature/140-bell-minimal-admin-menu
feature/138-bell-production-captcha
feature/133-bell-alert-lifecycle
feature/132-bell-rule-alert
feature/131-bell-event-receipt
feature/16-brain-local-events
feature/15-brain-rules
feature/14-brain-vision
feature/13-brain-decode
feature/11-brain-input
main
feat/sense-79-ops-alerts
feat/sense-78-outbox
feat/77-sense-media-shards
feat/76-sense-edge-node-status
feat/75-sense-quota-capacity
feature/74-sense-operations
feature/73-sense-local-events
feature/72-sense-bulk-provisioning
feature/113-record-parallel-acceptance
feature/113-sync-parallel-implementation-docs
feature/71-sense-e2e-regression
feature/62-bell-goadmin-skeleton
feature/10-brain-python-cuda-skeleton
feature/108-sync-devharness
feature/90-sense-root-launcher
feature/106-supervisor-sense
fix/101-sense-layout-shell
feature/104-sense-login-30-days
docs/99-acceptance
feature/99-sense-app-config
feature/70-sense-windows-delivery
fix/95-sense-media-path-constraint
feature/97-sense-password-login
docs/92-acceptance
fix/92-sense-capabilities-jsonb
docs/69-acceptance
feature/69-sense-area
feature/68-sense-liveview
feature/67-sense-mediamtx-reconcile
feature/66-sense-onvif-admission
feature/65-sense-device-credential
feature/64-sense-auth-rbac-audit
feature/61-sense-goadmin-source-baseline
docs/acceptance-batch-20260814
coordination/58-finalize-branch-governance
explore
agent/codex/56-sense-device-edit-payload
agent/codex/54-sense-liveview-on-demand
agent/codex/51-sense-auto-liveview
agent/codex/50-sense-split-camera-credentials
agent/codex/48-sense-onvif-digest
agent/codex/46-sense-env-loader
agent/codex/44-sense-empty-navigation
agent/codex/42-sense-password-length-only
agent/codex/40-sense-password-min-6
agent/codex/37-sense-windows-package
agent/codex/36-bell-docs
agent/codex/9-bell-mvp
agent/codex/21-sense-mvp
agent/codex/28-current-prototypes
agent/codex/5-goadmin-baseline
agent/codex/3-go-admin-ui-reuse
agent/codex/1-collaboration-rules
No results found.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ila/yovision#142
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
状态
已完成(2026-08-29 验收,PR #143 已合入 dev)
基本信息
复现与根因
build:prod并生成 Windows 包。#app为空。TypeError: Cannot read properties of undefined (reading 'theme'),位于生产app-legacy启动链。:export的element-variables.scss/variables.scss当普通样式默认导入;固定 css-loader 不为普通 SCSS 生成默认 JS export。构建已明确警告export 'default' ... was not found,运行时因variables.theme崩溃。目标
非目标
已确认修复方案草案
:export值的现有导入显式使用 CSS Modules resource query(?module),继续复用原变量文件与冻结 Vue CLI 构建链。@use引用。#app挂载、登录页可见、无variables.theme启动错误;再由 #134 的完整包浏览器 E2E 验证外壳与业务页面。?module不能在固定工具链稳定生成导出,停止并回写证据,不改用打包后字符串替换。精确 write_paths
Bell/ui/src/store/modules/settings.jsBell/ui/src/layout/index.vueBell/ui/src/layout/components/Sidebar/Logo.vueBell/ui/src/layout/components/Sidebar/index.vueBell/ui/tests/unit/shell-startup/**禁止修改其他 UI、Bell 后端、#134 测试/交付脚本、Sense、Brain、contracts、docs 和根级配置。
设计证据
恢复 #62 与 #33 已确认的 GoAdmin 应用外壳,不改变页面结构、流程、状态、权限或异常处理;以浏览器白屏复现、控制台错误和既有外壳为等效设计证据,不要求新原型。
验收标准
pnpm lint、pnpm test:unit -- --runInBand、pnpm build:prod通过。variables.scss/element-variables.scss缺少 default export 警告。#app,登录页可见,控制台无主题变量启动错误。风险与回退
文档影响
恢复已确认应用外壳,不改变长期配置、部署、API 或业务规则;预计无长期 Wiki 影响。
ila referenced this issue2026-08-29 16:59:26 +08:00
用户于 2026-08-29 明确要求执行 #142。实施按已确认方案进行:只在四个现有 JavaScript/Vue Sass 值导入上增加
?module,并在专用测试路径补充启动回归;不修改全局 loader、设计、其他 UI、后端或 #134 脚本。冻结 GoAdmin 文档依据(基线 commit
424855aacf6905f3fde860c3331385cb25529a0d):docs/intro/advanced/tutorial0210.md:保持src/layout、src/store、src/styles和dist的上游职责边界。docs/intro/advanced/tutorial0230.md:以浏览器实际出现 GoAdmin 登录页作为前端启动成功证据。本修复只调整现有 layout/store 对 styles 导出值的加载方式,不改变目录职责、入口组件、路由或构建基线。
实现完成,状态:待验收。
最终差异
?module,固定 css-loader 现在生成原有:export值。验证证据
corepack pnpm@9.15.1 install --frozen-lockfile:通过。corepack pnpm@9.15.1 lint:0 error;30 条冻结上游既有 warning。corepack pnpm@9.15.1 test:unit --runInBand:12 suites / 40 tests 全部通过。corepack pnpm@9.15.1 build:prod:通过;variables.scss/element-variables.scss缺少 default export 的两条警告消失。#app挂载 2 个根节点,GoAdmin 登录页可见,控制台无variables.theme启动错误。git diff --check与授权写路径检查通过。Git
1caa429cadc37a1803a3bfaf91caaa3fae659d6afeature/142-bell-ui-shell-startup → dev)文档影响
无长期文档影响:恢复已确认的 GoAdmin 应用外壳启动行为,不改变配置、部署、API 或业务规则;未修改 Wiki/镜像。
请验收 #142;验收前不合并 PR、不关闭工单。#134 原现场仍保存在 stash,另有一份集成验证副本,均未提交或推送。
用户于 2026-08-29 明确验收通过。PR #143 已合入
dev,合并提交6194b664ee822912c51803024453457c9b1e1c36;工单已关闭。无长期 Wiki 变化,未执行文档镜像同步。