v1.2.1: 操作后保持右侧面板显示,方便后续配置

This commit is contained in:
2026-04-21 11:43:38 +08:00
parent 7544e47ed3
commit 5aa802e960
2 changed files with 6 additions and 4 deletions

4
app.py
View File

@@ -64,9 +64,9 @@ def list_images():
if __name__ == '__main__': if __name__ == '__main__':
print("=" * 50) print("=" * 50)
print("图片编辑器 - Image Editor v1.2.0") print("图片编辑器 - Image Editor v1.2.1")
print("=" * 50) print("=" * 50)
print("右侧面板实时配置,操作更流畅") print("右侧面板实时配置,操作更流畅")
print(f"访问地址: http://localhost:19018") print(f"访问地址: http://localhost:19018")
print("=" * 50) print("=" * 50)
app.run(host='0.0.0.0', port=19018, debug=True) app.run(host='0.0.0.0', port=19018, debug=True)=True)

View File

@@ -421,7 +421,10 @@
<p class="text-xs text-gray-500">点击"开始选择"后,在画布上拖动选择区域</p> <p class="text-xs text-gray-500">点击"开始选择"后,在画布上拖动选择区域</p>
</div> </div>
`, `,
actions: `<button onclick="startHoleSelection()" class="px-4 py-2 bg-blue-500 text-white rounded-lg w-full">开始选择</button>` actions: `
<button onclick="startHoleSelection()" class="px-4 py-2 bg-blue-500 text-white rounded-lg w-full mb-2">开始选择</button>
<button onclick="closePanel()" class="px-4 py-2 bg-gray-200 rounded-lg w-full">关闭面板</button>
`
}; };
case 'circle': case 'circle':
@@ -1245,7 +1248,6 @@
document.getElementById('historyList').innerHTML = '<span class="text-gray-400 text-xs">暂无操作</span>'; document.getElementById('historyList').innerHTML = '<span class="text-gray-400 text-xs">暂无操作</span>';
showEmptyHint(); showEmptyHint();
document.getElementById('splitResults').classList.add('hidden'); document.getElementById('splitResults').classList.add('hidden');
closePanel();
} }
// 监听合并面板渲染 // 监听合并面板渲染