Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
973f3c7c
Commit
973f3c7c
authored
Dec 28, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加草稿接口
parent
3af19a6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
index.jsx
src/pages/ServiceGoods/index.jsx
+1
-0
service.js
src/pages/ServiceGoods/service.js
+7
-0
No files found.
src/pages/ServiceGoods/index.jsx
View file @
973f3c7c
...
...
@@ -19,6 +19,7 @@ import {
merchantProductAdd
,
merchantProductEdit
,
getByProductType
,
apiCreateDraft
,
}
from
'
./service
'
;
import
{
isUrl
,
filterSendData
,
clearCurrent
,
onAutoSaveValue
,
localAutoSaveKey
}
from
'
./utils
'
;
import
{
ServiceContext
}
from
'
./context
'
;
...
...
src/pages/ServiceGoods/service.js
View file @
973f3c7c
...
...
@@ -103,3 +103,10 @@ export const apiGetAttribute = categoryId =>
request
.
get
(
`/api/kdsp/category/template/ref/attribute/detail?categoryId=
${
categoryId
}
`
,
{
prefix
:
goodsApi
,
});
// 新建草稿
export
const
apiCreateDraft
=
data
=>
request
.
post
(
'
/product/draft/add
'
,
{
prefix
:
goodsApi
,
data
,
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment