bricks/dist/examples/iptvchannels.bcrud
yumoqing 2e22085122 feat: 401后登录成功自动重试原始请求
- withLoginInfo 改为接收完整 opts(含 method/headers/params)
- 等待 login_window 的 destroy 事件(=登录成功信号)
- 登录成功后重试原始请求
- 重试仍401则返回null(避免死循环)
- 用户手动关闭登录窗口时也触发重试,401则返回null
2026-05-27 15:39:34 +08:00

54 lines
947 B
Plaintext

{
"database":"iptvdb",
"table":"iptvchannels",
"browser":{
"lineno":true,
"include":[
{
"freeze":true,
"name":"play_btn",
"label":"Play",
"uitype":"button",
"color":"#2222d4",
"width":"60px",
"uioptions":{
"bgcolor":"#2222ff",
"nonepack":true
},
"action":{
"actiontype":"script",
"target":"self",
"script":"console.log(params.url); window.open(params.url);"
}
},
{
"freeze":true,
"name":"del_btn",
"label":"del",
"uitype":"button",
"bgcolor":"#d4d4d4",
"color":"#2222d4",
"width":"60px",
"uioptions":{
"bgcolor":"#2222ff",
"nonepack":true
},
"action":{
"actiontype":"script",
"target":"self",
"script":"console.log(params); window.open(params.url);"
}
}
],
"exclude":["id", "media_type"],
"alter":{
"url":{
"width":"410px"
},
"tv_group":{
"width":"100px"
}
}
}
}