diff --git a/yudao-ui-admin/src/api/mp/draft.js b/yudao-ui-admin/src/api/mp/draft.js index b1623c6d7..4b8d58385 100644 --- a/yudao-ui-admin/src/api/mp/draft.js +++ b/yudao-ui-admin/src/api/mp/draft.js @@ -8,3 +8,14 @@ export function getDraftPage(query) { params: query }) } + +// 创建草稿 +export function createDraft(accountId, articles) { + return request({ + url: '/mp/draft/create?accountId=' + accountId, + method: 'post', + data: { + articles + } + }) +} diff --git a/yudao-ui-admin/src/views/mp/draft/index.vue b/yudao-ui-admin/src/views/mp/draft/index.vue index 9e9da9fbd..39467d810 100644 --- a/yudao-ui-admin/src/views/mp/draft/index.vue +++ b/yudao-ui-admin/src/views/mp/draft/index.vue @@ -60,14 +60,14 @@ SOFTWARE. -