|
|
@@ -122,36 +122,14 @@ const DeekSeek: React.FC = () => {
|
|
|
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'flex-end' }}>
|
|
|
<button
|
|
|
className='open-platform-btn'
|
|
|
- onClick={() => window.open('https://llm.jkec.info:11431', '_blank')}
|
|
|
- >
|
|
|
- 建科 • 小智开放平台
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- {/* 右侧跳转按钮 */}
|
|
|
- <div style={{
|
|
|
- marginLeft: 'auto', // 自动占据左侧空间,将按钮推到最右侧
|
|
|
- marginRight: 20 // 右侧间距,与其他元素保持一致
|
|
|
- }}>
|
|
|
- <button
|
|
|
onClick={() => {
|
|
|
// 跳转到其他平台的逻辑,这里使用window.open举例
|
|
|
const userInfo = localStorage.getItem('userInfo');
|
|
|
const tokenParam = userInfo ? "?token=" + JSON.parse(userInfo).token : "";
|
|
|
- window.open('http://localhost:3100' + tokenParam, '_blank');
|
|
|
- // 如果是内部路由跳转,可以使用navigate:
|
|
|
- // navigate('/target-path');
|
|
|
- }}
|
|
|
- style={{
|
|
|
- padding: '6px 12px',
|
|
|
- backgroundColor: '#165DFF', // 蓝色按钮,可根据设计调整
|
|
|
- color: 'white',
|
|
|
- border: 'none',
|
|
|
- borderRadius: 4,
|
|
|
- cursor: 'pointer',
|
|
|
- whiteSpace: 'nowrap'
|
|
|
+ window.open('https://llm.jkec.info:11431' + tokenParam, '_blank');
|
|
|
}}
|
|
|
>
|
|
|
- 前往开放平台
|
|
|
+ 建科 • 小智开放平台
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|