Skip to content

Commit c714c8d

Browse files
dfhfg123doombeaker
andauthored
Fix/bot edit image (#79)
* 使用kontext模型编辑图片 * 添加点击可以再次直接上传的功能 * edit调用后端 * 修复#显示bug、清除对话时的bug * 修改edit请求 * 添加authorization * 更新version * 添加Authorization * 修改kontext接口返回值 * fix多余注释 * version * auto prettier format code * 添加class * auto prettier format code * 修改模型 * auto prettier format code * remove useless values * resolve conflicts * auto prettier format code * fix * 删除无用日志和注释 * auto prettier format code * fix * auto prettier format code * fix * 过滤文本消息 * auto prettier format code * 服务端模式下对loadimage节点处理 --------- Co-authored-by: Yao Chi <later@usopp.net> Co-authored-by: doombeaker <3351623+doombeaker@users.noreply.github.com>
1 parent c6be274 commit c714c8d

7 files changed

Lines changed: 451 additions & 337 deletions

File tree

bizyui/js/model_apply.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ const NodeInfoLogger = (function() {
149149

150150
// 使用装饰器模式扩展节点的onMouseDown方法
151151
node.onMouseDown = function(e, pos, canvas) {
152+
if (this._isServerMode && this.type === 'LoadImage') {
153+
return;
154+
}
152155
// 对于小部件点击或右键点击,直接使用原始方法处理
153156
if (e.widgetClick || e.button !== 0) {
154157
return this._originalOnMouseDown?.apply(this, arguments);

0 commit comments

Comments
 (0)