This commit is contained in:
yumoqing 2025-08-15 16:18:09 +08:00
parent 548d8f374f
commit 9e2fb01c0f
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ bricks.Iframe = class extends bricks.Layout {
bricks.NewWindow = class extends bricks.JsWidget { bricks.NewWindow = class extends bricks.JsWidget {
constructor(opts){ constructor(opts){
super(opts); super(opts);
window.open(opts.url, target=opts.name || '_blank'); window.open(opts.url, opts.name || '_blank');
} }
} }

View File

@ -290,7 +290,7 @@ bricks.Tree = class extends bricks.VScrollPanel {
break; break;
default: default:
if ((opts.selected_data || opts.checked_data) && ! this.selected_node){ if ((opts.selected_data || opts.checked_data) && ! this.selected_node){
w = new bricks.Error({title:'Error', message:'No selected node found'}); var w = new bricks.Error({title:'Error', message:'No selected node found'});
w.open(); w.open();
return; return;
} }