add test code for reading pdf files

This commit is contained in:
RockYang
2024-06-26 18:50:48 +08:00
parent f8fed83507
commit 739cd46539
11 changed files with 155 additions and 15 deletions

View File

@@ -169,13 +169,25 @@ $borderColor = #4676d0;
position relative
::-webkit-scrollbar {
width: 0;
height: 0;
background-color: transparent;
width: 12px /* */
background #F1F1F1
}
::-webkit-scrollbar-track {
background-color: #e1e1e1;
}
::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius 12px
}
::-webkit-scrollbar-thumb:hover {
background-color: #A8A8A8;
}
.chat-box {
overflow-y: scroll;
overflow-y: auto;
//border-bottom: 1px solid #4f4f4f
//

View File

@@ -12,7 +12,9 @@
<el-image :src="GetFileIcon(file.ext)" fit="cover" />
</div>
<div class="body">
<div class="title">{{substr(file.name, 30)}}</div>
<div class="title">
<el-link :href="file.url" target="_blank" style="--el-font-weight-primary:bold">{{substr(file.name, 30)}}</el-link>
</div>
<div class="info">
<span>{{GetFileType(file.ext)}}</span>
<span>{{FormatFileSize(file.size)}}</span>
@@ -87,7 +89,6 @@ const removeFile = (file) => {
margin-left 5px
font-size 14px
.title {
font-weight bold
line-height 24px
color #0D0D0D
}

View File

@@ -774,6 +774,7 @@ const sendMessage = function () {
tmpChatTitle.value = content
prompt.value = ''
files.value = []
row.value = 1
return true;
}

View File

@@ -178,7 +178,7 @@ const tableData = ref([])
const sortedTableData = ref([])
const role = ref({context: []})
const formRef = ref(null)
const optTitle = ref({})
const optTitle = ref("")
const loading = ref(true)
const rules = reactive({
@@ -231,7 +231,7 @@ const fetchData = () => {
sortedData.forEach((id, index) => {
ids.push(parseInt(id))
sorts.push(index+1)
items.value[index].sort_num = index + 1
tableData.value[index].sort_num = index + 1
})
httpPost("/api/admin/role/sort", {ids: ids, sorts: sorts}).catch(e => {