From 29d75228477b8aeff696de88b36a6cd49f85224f Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Tue, 11 Aug 2020 22:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxWechatLiveGoods.js | 10 ++++++++-- src/views/wechat/goods/index.vue | 32 +++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/src/api/yxWechatLiveGoods.js b/src/api/yxWechatLiveGoods.js index ef575b0..fa8d22e 100644 --- a/src/api/yxWechatLiveGoods.js +++ b/src/api/yxWechatLiveGoods.js @@ -23,5 +23,11 @@ export function edit(data) { data }) } - -export default { add, edit, del } +export function sync(ids) { + return request({ + url: 'api/yxWechatLiveGoods/sync', + method: 'post', + data: ids + }) +} +export default { add, edit, del, sync } diff --git a/src/views/wechat/goods/index.vue b/src/views/wechat/goods/index.vue index f48df71..026453f 100644 --- a/src/views/wechat/goods/index.vue +++ b/src/views/wechat/goods/index.vue @@ -11,7 +11,19 @@ - + + + 同步 + + @@ -110,6 +122,7 @@