修复: 设置页渲染崩溃(AdvancedSection clampApprovalTimeout 打包后 TDZ)
- 根因:VALID_APPROVAL_TIMEOUTS 常量定义在文件末尾,但 clampApprovalTimeout 在 settings reactive 初始化时调用。Rollup 打包后 const 声明顺序变了,导致 TDZ - 修复:把 VALID_APPROVAL_TIMEOUTS + clampApprovalTimeout 移到 settings reactive 之前 - 附带修复:@/i18n 去掉对 @/stores/appSettings 的 import,改直读 localStorage,消除循环依赖链
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"identifier": "default",
|
||||
"description": "DevFlow default permissions",
|
||||
"windows": ["main", "ai-detached"],
|
||||
"windows": ["main", "ai-detached", "ai-detached-*", "fe-detached-*"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"core:event:default",
|
||||
|
||||
Reference in New Issue
Block a user