This commit is contained in:
yumoqing 2025-08-15 13:54:54 +08:00
parent 931968ef48
commit 29ed9ebf75
2 changed files with 32 additions and 1 deletions

View File

@ -17,6 +17,26 @@
"subtable": "upappkey", "subtable": "upappkey",
"title": "APIKEY" "title": "APIKEY"
} }
] ],
"toolbar":{
"tools":[
{
"name":"jumpin",
"label":"跳转到",
"selected_data": true
}
]
},
"binds":[
{
"wid":"self",
"event":"jumpin",
"actiontype":"urlwidget",
"target":"self",
"options":{
"url":"{{entire_url('/uapi/jumpin.dspy')}}"
}
}
]
} }
} }

11
wwwroot/jump_in.dspy Normal file
View File

@ -0,0 +1,11 @@
userid = await get_user()
d = await get_deerer(params_kw.id, userid)
if d is None:
return UiError(title='跳转', message='当前用户没有上位系统apikey")
return {
"widgettype":"NewWindow",
"options":{
"name": "upappid",
"url": parmas_kw.baseurl + "/v1/jump-in?dearer=" + d
}
}