Skip to content

fix: 优化全局状态处理和资源加载逻辑 - #1207

Open
Ljhhhhhh wants to merge 3 commits into
opentiny:developfrom
Ljhhhhhh:patch-1
Open

fix: 优化全局状态处理和资源加载逻辑#1207
Ljhhhhhh wants to merge 3 commits into
opentiny:developfrom
Ljhhhhhh:patch-1

Conversation

@Ljhhhhhh

@Ljhhhhhh Ljhhhhhh commented Mar 8, 2025

Copy link
Copy Markdown
Contributor
  • 重构 global-state.ts 中的状态处理,支持数组和对象类型的状态计算
  • 修改 VariableConfigurator.vue 中的变量加载方式
  • 更新 useResource 中的应用状态获取逻辑,兼容 mock、java 两种方式

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • Refactor
    • Enhanced state management with improved error handling for different data formats.
    • Streamlined variable configuration for a more direct mapping of store identifiers.
    • Updated metadata processing with flexible fallbacks to ensure consistent application behavior.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants