add test code for reading pdf files

This commit is contained in:
RockYang
2024-06-26 18:50:48 +08:00
parent 2526feb0d9
commit 88e510d07a
11 changed files with 155 additions and 15 deletions

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 => {