fix: 接口变更

This commit is contained in:
TsMask
2024-04-25 17:18:46 +08:00
parent 8e2e9aec67
commit 4629ef28ff
2 changed files with 7 additions and 4 deletions

View File

@@ -4,7 +4,11 @@ import { message, Form, Modal } from 'ant-design-vue/lib';
import useI18n from '@/hooks/useI18n';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import useNeInfoStore from '@/store/modules/neinfo';
import { addNeInfo, updateNeInfo, getTypeAndIDNeInfo } from '@/api/ne/neInfo';
import {
addNeInfo,
updateNeInfo,
getNeInfoByTypeAndIDNe,
} from '@/api/ne/neInfo';
import { NE_TYPE_LIST } from '@/constants/ne-constants';
import { stepState } from '../hooks/useStep';
const { t } = useI18n();
@@ -115,7 +119,7 @@ function fnNeInfo() {
.validate()
.then(e => {
modalState.confirmLoading = true;
return getTypeAndIDNeInfo(from.neType, from.neId);
return getNeInfoByTypeAndIDNe(from.neType, from.neId);
})
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {