feat: 支持多实例与配置隔离,全面本地化测试面板
- 实现多实例支持:自动扫描可用端口 - 实现项目级配置隔离:配置存储于项目 settings 目录 - 更新测试面板:界面完全汉化,端口显示实时同步 - 本地化:main.js 日志与 IPC 测试模块全面中文化
This commit is contained in:
@@ -39,6 +39,11 @@ Editor.Panel.extend({
|
||||
*/
|
||||
"mcp-bridge:state-changed"(event, config) {
|
||||
this.updateUI(config.active);
|
||||
// 如果服务器已启动,更新面板显示的端口为实际运行端口
|
||||
if (config.active && config.port) {
|
||||
const portInput = this.shadowRoot.querySelector("#portInput");
|
||||
if (portInput) portInput.value = config.port;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user