fix: 页面布局
parent
3f1d3b4134
commit
efc56ca61f
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Reference in New Issue