From 1c03bb80711f05838348fc9a331ac38e89ff2d48 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 7 Aug 2026 15:38:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E7=AD=BE=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E5=86=8D=E6=95=B4=E9=A1=B5=E5=88=B7=E6=96=B0?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= =?UTF-8?q?+AJAX=E5=88=B7=E6=96=B0=E5=8D=A1=E7=89=87=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/knowledge_bases_list/tag_form.dspy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/tag_form.dspy b/wwwroot/knowledge_bases_list/tag_form.dspy index 519d0e1..822a992 100644 --- a/wwwroot/knowledge_bases_list/tag_form.dspy +++ b/wwwroot/knowledge_bases_list/tag_form.dspy @@ -132,7 +132,8 @@ submit_js = ("var rows=document.querySelectorAll('#tag_list_panel [data-sel]');" "fetch(u).then(function(r){return r.json()}).then(function(d){" "var pw=null;var w=self;while(w){if(w instanceof bricks.PopupWindow||w instanceof bricks.Popup){pw=w;break};w=w.parent};" "if(pw){pw.dismiss();pw.destroy()};" - "location.reload();" + "var mp=document.querySelector('#media_card_panel');" + "if(mp&&mp.bricks_widget){fetch('/rag/knowledge_bases_list/media_cards.dspy?_webbricks_=1&kb_id=" + kb_id + "&kind=" + kind + "').then(function(r2){return r2.json()}).then(function(d2){var mw=mp.bricks_widget;mw.clear_widgets();bricks.widgetBuild(d2,mw).then(function(nw){if(nw)mw.add_widget(nw)})}).catch(function(){})};" "}).catch(function(){alert('网络错误')});") # 组合弹窗内容