We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b822293 commit 9e73e4eCopy full SHA for 9e73e4e
1 file changed
src/App.jsx
@@ -955,9 +955,9 @@ export default function App() {
955
setAiLoading(false);
956
setShowAiModal(true);
957
958
- // 由于浏览器 CORS 限制,直接使用 iframe 嵌入 Dify WebApp
959
- // 用户需要在 iframe 中手动输入或粘贴题目
960
- setAiIframeUrl(`https://udify.app/chatbot/xg0maoDg7kzrcGT0`);
+ // 添加时间戳参数,确保每次都是新会话,避免加载旧的 conversation_id
+ const timestamp = Date.now();
+ setAiIframeUrl(`https://udify.app/chatbot/xg0maoDg7kzrcGT0?t=${timestamp}`);
961
}, []);
962
963
const closeAiModal = useCallback(() => {
@@ -1765,6 +1765,7 @@ export default function App() {
1765
style={{ width: '100%', height: '100%', border: 'none' }}
1766
title="AI 解析助手"
1767
allow="microphone"
1768
+ key={aiIframeUrl}
1769
/>
1770
</div>
1771
</>
0 commit comments