Przeglądaj źródła

feat: 碳排放bug修改

sunxiao 6 miesięcy temu
rodzic
commit
69c532700d
1 zmienionych plików z 0 dodań i 10 usunięć
  1. 0 10
      src/views/carbon/components/TheDrawerForm.vue

+ 0 - 10
src/views/carbon/components/TheDrawerForm.vue

@@ -484,16 +484,6 @@ const onReset = () => {
 
 const onSubmit = async (e) => {
   e.preventDefault();
-  const params = formatData();
-  try {
-    await carbonApi.postCarbonSmart(params);
-    onReset();
-    emit('on-submit');
-    message.success("提交成功");
-  } catch (e) {
-    message.error(e.msg, { duration: 3500 });
-  }
-  return
   const isVerifying = !validateTableData();
   formRef.value?.validate(async (errors) => {
     if (!errors) {