feat: 修改ai提示

This commit is contained in:
zhouc 2025-03-04 18:11:54 +08:00
parent 5aad8fb176
commit 44ea0e635d
2 changed files with 13 additions and 9 deletions

View File

@ -21,7 +21,7 @@ onChange(async () => {
loading.value = true loading.value = true
ocrResult.value = await getOcrResult({ ocrResult.value = await getOcrResult({
file: files.value.item(0), file: files.value.item(0),
msg: '请识别图片中的文字结果以markdown格式输出', msg: '识别图像内容根据内容用makedown格式整理输出。',
}) })
loading.value = false loading.value = false
reset() reset()

View File

@ -5,6 +5,7 @@ import { message } from 'ant-design-vue'
import type { UploadChangeParam } from 'ant-design-vue' import type { UploadChangeParam } from 'ant-design-vue'
const fileList_left = ref([]) const fileList_left = ref([])
function handleChange_left(info: UploadChangeParam) { function handleChange_left(info: UploadChangeParam) {
const status = info.file.status const status = info.file.status
if (status !== 'uploading') if (status !== 'uploading')
@ -24,6 +25,7 @@ function handleDrop_left(e: DragEvent) {
} }
const fileList = ref([]) const fileList = ref([])
function handleChange(info: UploadChangeParam) { function handleChange(info: UploadChangeParam) {
const status = info.file.status const status = info.file.status
if (status !== 'uploading') if (status !== 'uploading')
@ -60,8 +62,10 @@ function handleDrop(e: DragEvent) {
<inbox-outlined /> <inbox-outlined />
</p> </p>
<p class="ant-upload-text"> <p class="ant-upload-text">
单击或拖动文件到此区域进行上传,Click or drag file to this area 单击或拖动文件到此区域进行上传
to upload </p>
<p>
一次只支持上传一个文件
</p> </p>
<!-- <p class="ant-upload-hint"> --> <!-- <p class="ant-upload-hint"> -->
<!-- Support for a single or bulk upload. Strictly prohibit from uploading company data or --> <!-- Support for a single or bulk upload. Strictly prohibit from uploading company data or -->
@ -88,13 +92,13 @@ function handleDrop(e: DragEvent) {
<inbox-outlined /> <inbox-outlined />
</p> </p>
<p class="ant-upload-text"> <p class="ant-upload-text">
Click or drag file to this area to upload 拆分后结果
</p>
<p class="ant-upload-hint">
Support for a single or bulk upload. Strictly prohibit from uploading company data or
other
band files
</p> </p>
<!-- <p class="ant-upload-hint"> -->
<!-- Support for a single or bulk upload. Strictly prohibit from uploading company data or -->
<!-- other -->
<!-- band files -->
<!-- </p> -->
</a-upload-dragger> </a-upload-dragger>
</div> </div>
</a-col> </a-col>