Skip to content

Commit 26c3158

Browse files
committed
Merge branch 'master' into fix_apiKey
2 parents 869fff8 + 28dfed2 commit 26c3158

8 files changed

Lines changed: 489 additions & 351 deletions

File tree

bizyui/js/model_apply.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ const NodeInfoLogger = (function() {
148148
}
149149

150150
// 使用装饰器模式扩展节点的onMouseDown方法
151+
const serverModeResponse = await fetch("/bizyair/server_mode");
152+
const serverModeData = await serverModeResponse.json();
151153
node.onMouseDown = function(e, pos, canvas) {
154+
if (serverModeData.data.server_mode && this.type === 'LoadImage') {
155+
console.log(this.type, 'this=p------');
156+
return;
157+
}
152158
// 对于小部件点击或右键点击,直接使用原始方法处理
153159
if (e.widgetClick || e.button !== 0) {
154160
return this._originalOnMouseDown?.apply(this, arguments);

0 commit comments

Comments
 (0)