From 733e3d9b13fdeb6a74ce1a5e45cf4a0ff478ab21 Mon Sep 17 00:00:00 2001 From: hupeng Date: Fri, 10 Apr 2020 21:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E8=8F=9C=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/YxWechatMenu.js | 31 +++++++++++++++++++++++++++++ src/api/yxCache.js | 8 ++++---- src/views/wechat/menu/form.vue | 2 +- src/views/wechat/menu/index-bak.vue | 12 +++++------ src/views/wechat/menu/index.vue | 4 ++-- 5 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 src/api/YxWechatMenu.js diff --git a/src/api/YxWechatMenu.js b/src/api/YxWechatMenu.js new file mode 100644 index 0000000..1c190c0 --- /dev/null +++ b/src/api/YxWechatMenu.js @@ -0,0 +1,31 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/YxWechatMenu', + method: 'post', + data + }) +} + +export function del(key) { + return request({ + url: 'api/YxWechatMenu/' + key, + method: 'delete' + }) +} + +export function edit(data) { + return request({ + url: 'api/YxWechatMenu', + method: 'put', + data + }) +} + +export function get() { + return request({ + url: 'api/YxWechatMenu', + method: 'get' + }) +} diff --git a/src/api/yxCache.js b/src/api/yxCache.js index 09e14fa..1c190c0 100644 --- a/src/api/yxCache.js +++ b/src/api/yxCache.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/yxCache', + url: 'api/YxWechatMenu', method: 'post', data }) @@ -10,14 +10,14 @@ export function add(data) { export function del(key) { return request({ - url: 'api/yxCache/' + key, + url: 'api/YxWechatMenu/' + key, method: 'delete' }) } export function edit(data) { return request({ - url: 'api/yxCache', + url: 'api/YxWechatMenu', method: 'put', data }) @@ -25,7 +25,7 @@ export function edit(data) { export function get() { return request({ - url: 'api/yxCache', + url: 'api/YxWechatMenu', method: 'get' }) } diff --git a/src/views/wechat/menu/form.vue b/src/views/wechat/menu/form.vue index 14b9adc..766ae70 100644 --- a/src/views/wechat/menu/form.vue +++ b/src/views/wechat/menu/form.vue @@ -16,7 +16,7 @@