fix(shell): secret_defaults改root options纯JSON(Html内script不执行,innerHTML注入规范)——bootstrap路线废弃
This commit is contained in:
parent
8131480a83
commit
7b6983bb73
@ -10,17 +10,15 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
"padding": "0"
|
"padding": "0",
|
||||||
|
"secret_defaults": {
|
||||||
|
"secret_dataurl": "/pipeline_core/api/secret_options.dspy",
|
||||||
|
"secret_format": "@@sec:{name}@@",
|
||||||
|
"secret_title": "选择敏感信息",
|
||||||
|
"secret_tip": "插入敏感信息"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
|
||||||
"widgettype": "Html",
|
|
||||||
"options": {
|
|
||||||
"html": "<script>window.__SECRET_DEFAULTS={secret_dataurl:'/pipeline_core/api/secret_options.dspy',secret_format:'@@sec:{name}@@',secret_title:'选择敏感信息',secret_tip:'插入敏感信息'};if(window.bricks&&bricks.app){bricks.app.secret_defaults=window.__SECRET_DEFAULTS;}</script>",
|
|
||||||
"height": "0",
|
|
||||||
"width": "0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"widgettype": "HBox",
|
"widgettype": "HBox",
|
||||||
"options": {
|
"options": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user