Skip to content

[v1.3] [Editor] TypeScript + (fix) Script State Update + (feat) Edit Conflict Detection#1219

Open
cyfung1031 wants to merge 2 commits intoscriptscat:release/v1.3from
cyfung1031:pr-scriptEditor-update-conflict-001
Open

[v1.3] [Editor] TypeScript + (fix) Script State Update + (feat) Edit Conflict Detection#1219
cyfung1031 wants to merge 2 commits intoscriptscat:release/v1.3from
cyfung1031:pr-scriptEditor-update-conflict-001

Conversation

@cyfung1031
Copy link
Collaborator

  • typeScript: async installScript(param: TScriptInstallParam): Promise<TScriptInstallReturn> { ... }
  • TScriptInstallReturn 加入 updatetime
  • 由 sw 回传的 updatetime 会写入 editors 里的 script 的 updatetime
  • 不传 Script, 改传 getScript, 使 Script state 不用传来传去。 (getScript永远取最新值而非旧State值)
  • Edit Conflict 时 以 modal.confirm 提示
Screenshot 2026-02-07 at 21 24 22

@cyfung1031 cyfung1031 linked an issue Feb 7, 2026 that may be closed by this pull request
@cyfung1031 cyfung1031 changed the title [v1.3] TypeScript + (fix) Script State Update + (feat) ScriptEditor Edit Conflict Detection [v1.3] [Editor] TypeScript + (fix) Script State Update + (feat) Edit Conflict Detection Feb 7, 2026
@cyfung1031
Copy link
Collaborator Author

題外話:這個Arco Design 可不可以把確定改左邊呀?每次都覺得很奇怪

@CodFrm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Editor] 多个分页编辑同一脚本时未检测到版本冲突

1 participant