Browse Source

fix: 撤销传参格式修改

191250028 3 years ago
parent
commit
22bb7ec28a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/model.js

+ 1 - 1
src/api/model.js

@@ -95,7 +95,7 @@ export const deleteModel=async modelId=>{
      * @returns
      */
     export const train = async modelId=>{
-        const res=await axios.get(`${MODEL_MODULE}/train`,{params: {modelId:modelId}});
+        const res=await axios.get(`${MODEL_MODULE}/train`,{params:modelId});
         return res;
     }
     /**