fix bug: remove chat role failed

This commit is contained in:
RockYang
2024-05-10 17:38:55 +08:00
parent bbc8fe2b40
commit dc4c1f7877
6 changed files with 13 additions and 15 deletions

View File

@@ -268,8 +268,8 @@ onMounted(() => {
const sorts = []
sortedData.forEach((id, index) => {
ids.push(parseInt(id))
sorts.push(index)
items.value[index].sort_num = index
sorts.push(index + 1)
items.value[index].sort_num = index + 1
})
httpPost("/api/admin/model/sort", {ids: ids, sorts: sorts}).then(() => {