安全性提升:TID动态生成+Streamlit页面排除+工作记忆修复

This commit is contained in:
Liang Jiaqing
2026-03-06 18:54:09 +08:00
parent c6af92e612
commit 524944dfc8
7 changed files with 22 additions and 15 deletions

View File

@@ -19,7 +19,8 @@
(function() {
'use strict';
const log_prefix = "ljq_driver: ";
if (document.querySelector('[data-testid="stApp"],.stApp')) return;
if (window.self !== window.top) {
window.addEventListener('message',e=>{if(e.data?.type==='ljq_exec'){try{let r=eval(e.data.code);parent.postMessage({type:'ljq_result',id:e.data.id,result:String(r)},'*')}catch(err){parent.postMessage({type:'ljq_result',id:e.data.id,error:err.message},'*')}}});
return;