Update ui_mixlab.js

This commit is contained in:
shadowcz007
2024-02-12 19:20:34 +08:00
parent 7568aaf243
commit 1b9871c3df
+5 -1
View File
@@ -1487,7 +1487,11 @@ app.registerExtension({
// 右上角的badge是否已经绘制
if (!node.badge_enabled) {
node.getNickname = function () {
return getNickname(node, node.comfyClass.trim())
if(node.nickname) {
return node.nickname;
}
return ""
// return getNickname(node, node.comfyClass.trim())
}
const orig = node.__proto__.onDrawForeground
node.onDrawForeground = function (ctx) {