From 4629ef28ffe23bd95bdd4ce6907b1abe6b913032 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 25 Apr 2024 17:18:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ne/neConfPara5G/index.vue | 3 +-- src/views/ne/neQuickSetup/components/StepNeInfo.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/ne/neConfPara5G/index.vue b/src/views/ne/neConfPara5G/index.vue index bcc8c072..9a2ec169 100644 --- a/src/views/ne/neConfPara5G/index.vue +++ b/src/views/ne/neConfPara5G/index.vue @@ -64,7 +64,6 @@ function fnModalOk() { if (state.confirmLoading) return; state.confirmLoading = true; savePara5GFile({ - fileType: 'yaml', content: toRaw(state.from), syncNe: state.sync ? state.syncNe : [], }) @@ -96,7 +95,7 @@ function fnSaveData() { function fnGetData() { if (state.confirmLoading) return; state.confirmLoading = true; - getPara5GFilee('yaml') + getPara5GFilee() .then(res => { if (typeof res.data === 'object') { Object.assign(state.from, res.data); diff --git a/src/views/ne/neQuickSetup/components/StepNeInfo.vue b/src/views/ne/neQuickSetup/components/StepNeInfo.vue index b3af6a91..39ee8db2 100644 --- a/src/views/ne/neQuickSetup/components/StepNeInfo.vue +++ b/src/views/ne/neQuickSetup/components/StepNeInfo.vue @@ -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) {