mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-01 16:22:49 +08:00
fix(phone-image): 修復F2審查發現的代碼質量問題
- 移除captureDomPages中冗餘的console.log/error雙寫(統一用PhoneImageLogPanel) - 修復phone-image:save-config監聽器中無效的三元表達式(L829)
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user