mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 10:05:57 +08:00
merge v4.0.6
This commit is contained in:
@@ -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(() => {
|
||||
@@ -296,7 +296,7 @@ onUnmounted(() => {
|
||||
const add = function () {
|
||||
title.value = "新增模型"
|
||||
showDialog.value = true
|
||||
item.value = {enabled: true, weight: 1}
|
||||
item.value = {enabled: true, weight: 1, open: true}
|
||||
}
|
||||
|
||||
const edit = function (row) {
|
||||
|
||||
Reference in New Issue
Block a user