fix(phone-image): 修復F2審查發現的代碼質量問題

- 移除captureDomPages中冗餘的console.log/error雙寫(統一用PhoneImageLogPanel)
- 修復phone-image:save-config監聽器中無效的三元表達式(L829)
This commit is contained in:
augushong
2026-05-19 00:51:49 +08:00
parent 7bb066b704
commit 1ef0a4eabd
2 changed files with 1 additions and 6 deletions

View File

@@ -825,8 +825,7 @@
// ========== 引擎内部防抖保存事件监听 ==========
$(document).on('phone-image:save-config', function () {
// 同步pageAlignments到currentConfig
currentConfig.pageAlignments = PhoneImageEngine.updateConfig.call.length ? currentConfig.pageAlignments : currentConfig.pageAlignments;
// pageAlignments已在change handler中同步到currentConfig,此处直接保存
updateSaveState('saving');
PhoneImageLogPanel.log('自动保存对齐配置...', 'info');
PhoneImageEngine.saveConfig(postData.postId, {