🐛fix: 修复统一接口导致的返回问题

This commit is contained in:
yubaolee
2025-06-20 21:01:29 +08:00
parent 878acdacc0
commit 98dad768e5
3 changed files with 6 additions and 6 deletions

View File

@@ -343,9 +343,9 @@ const createData = () => {
tempData = setDetails(tempData)
tempData.OrgId = defaultorgid.value
{FirstTableName}s.add(tempData).then(resp => {
if (resp.result != undefined) {
if (resp.data != undefined) {
//如果服务器返回生成的ID
firstTemp.id = resp.result
firstTemp.id = resp.data
}
mainList.value.unshift(firstTemp)
editModel.value = false