12345678910111213141516171819202122232425262728293031323334353637383940 |
- <ion-header [translucent]="true">
- <ion-toolbar>
- <ion-buttons slot="start">
- <ion-back-button defaultHref="/tabs/tab1"></ion-back-button>
- </ion-buttons>
- <ion-title>
- 问答
- </ion-title>
- </ion-toolbar>
- </ion-header>
- <<<<<<< HEAD
- =======
- <<<<<<< HEAD
- >>>>>>> 12d2b49093d6f8ce7867d2e6ee12adc246927d73
- <ion-content>
- <!-- 文本域:生成提示词 -->
- <h1>输入问题</h1>
- <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="文本提示词" autoGrow="true"></ion-textarea>
-
- <!-- 按钮:执行消息生成函数 -->
- <ion-button (click)="sendMessage()" expand="block">提交问题</ion-button>
-
- <!-- 展示:返回消息内容 -->
- <div *ngIf="!isComplete">{{responseMsg}}</div>
-
- <!-- 消息传输完成后,实时预览Markdown格式 -->
- <fm-markdown-preview *ngIf="isComplete" class="content-style" [content]="responseMsg"></fm-markdown-preview>
- <<<<<<< HEAD
- =======
- =======
- <ion-content [fullscreen]="true">
- <ion-header collapse="condense">
- <ion-toolbar>
- <ion-title size="large">问答</ion-title>
- </ion-toolbar>
- </ion-header>
- >>>>>>> fd52ca36698bd0c3fe861eed14ed929d420a4aa7
- >>>>>>> 12d2b49093d6f8ce7867d2e6ee12adc246927d73
- </ion-content>
|