mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-01 16:22:49 +08:00
fix(phone-image): T7 integration fixes
Fix 3 bugs found during Playwright integration testing:
1. Template syntax: {|json_encode|default='{}'} -> PHP native (curly braces parsed as TP6 tags)
2. jQuery event namespace mismatch: off('click.phoneImage') -> off('click') to match on('click')
3. Migration executed on server
All 6 Playwright test scenarios passed: layout, content flow, preview, alignment, font size, toolbar buttons
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
};
|
||||
|
||||
// 恢复之前保存的排版配置
|
||||
var savedConfig = {$layoutConfig|json_encode|default="{}"};
|
||||
var savedConfig = <?php echo $layoutConfig ? json_encode($layoutConfig) : '{}'; ?>;
|
||||
var initConfig = {
|
||||
size: savedConfig.size || 'xiaohongshu',
|
||||
fontSize: savedConfig.fontSize || 14,
|
||||
|
||||
Reference in New Issue
Block a user