fix: 页面布局

master
xjs 2025-04-10 11:46:03 +08:00
parent 3f1d3b4134
commit efc56ca61f
4 changed files with 7 additions and 11 deletions

View File

@ -124,7 +124,7 @@ export class ConfigFactory {
MaxTokens: 1024,
Temperature: 0.5,
TopP: 0.3,
SystemMessages: [this.Prompt as string,'遇到*星或者星星这样的文字则使用()包裹起来'],
SystemMessages: [this.Prompt as string],
UserMessages:[],
Prefill: true,
ModelName: this.Model,

View File

@ -21,6 +21,10 @@ export default function MyInput({ toRoom }: Props) {
await toRoom();
dispatch(setInitMsg(`我的高考地点在${provinceName},我选择的科目是${subjectGroup},我的高考分数为${expectedScore}分。我适合哪些学校和专业`));
};
const handleReadWorld = async () => {
await toRoom();
dispatch(setInitMsg(`这是我的文档地址https://static-data.ycymedu.com/pdf/663640899633221.pdf读取它。并给出见解`))
}
return (
<div className={style.scoreWrapper}>
@ -38,6 +42,7 @@ export default function MyInput({ toRoom }: Props) {
<img src={RightBlueIcon} alt="right" className={style.rightBlue} />
</div>
</div>
<div onClick={handleReadWorld}></div>
</div>
);
}

View File

@ -6,19 +6,13 @@
.main {
position: relative;
width: 100%;
height: calc(100% - 48px);
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
box-sizing: border-box;
.mainArea {
position: relative;
width: calc(100% - 220px);
height: 100%;
margin-right: 2%;
background: linear-gradient( 180deg, #fff 0%, #eee 100%);
border-radius: 16px;
overflow: hidden;
}

View File

@ -14,9 +14,6 @@ export default function () {
<ResizeWrapper className={styles.container}>
<div
className={styles.main}
style={{
padding: utils.isMobile() ? '' : '24px 124px',
}}
>
<div className={`${styles.mainArea} ${utils.isMobile() ? styles.isMobile : ''}`}>
<MainArea />