From 47fa8d101261287b6db4f8fcb4e20569e1dfbb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Wed, 24 Nov 2021 14:35:22 +0800 Subject: [PATCH] Update api.js --- src/assets/api.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/assets/api.js b/src/assets/api.js index e8d78b77..95fb3c66 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -80,7 +80,10 @@ export const getReSellerOption = (params) => { //新建营销计划 export const addPlanStep = (id, params) => { let str = id ? "/"+id :"" - + if(str) + { + return req('put', baseurl + "/plan/step" + str, params) + } return req('post', baseurl + "/plan/step" + str, params) } //获取营销计划草稿信息