Commit 2a736ee9 by 李伟康

fix(chat): 修复设置页面跳转方式

- 将 window.open 替换为 window.location.href 进行页面跳转
- 确保在当前窗口打开设置页面而不是新窗口
- 保持会话ID和企业ID参数传递功能不变
1 parent 38201494
...@@ -16,7 +16,7 @@ const Setting: FC = () => { ...@@ -16,7 +16,7 @@ const Setting: FC = () => {
const { settingUrl } = globalConfig const { settingUrl } = globalConfig
if (settingUrl) { if (settingUrl) {
window.open(`${settingUrl}?sessionId=${sessionId}&corpId=${corpId}`) window.location.href = `${settingUrl}?sessionId=${sessionId}&corpId=${corpId}`
} else { } else {
console.warn('配置中未设置 settingUrl') console.warn('配置中未设置 settingUrl')
} }
...@@ -31,4 +31,4 @@ const Setting: FC = () => { ...@@ -31,4 +31,4 @@ const Setting: FC = () => {
</> </>
) )
} }
export default memo(Setting) export default memo(Setting)
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!