From 07f6eb64202631ddf0a524d113804275c5a4969d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E8=90=BD=28YangLei=29?= Date: Wed, 7 Jul 2021 14:03:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E7=9A=84=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/menu.js | 4 ++++ src/pages/system/view/menu/form.vue | 37 ++++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/api/menu.js b/src/api/menu.js index 2e374af..aec243b 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -16,6 +16,10 @@ export async function getMenuDataApi(useCache) { }); } +export function getMenuDetailApi(id) { + return getReq(`/api/v1/menus/${id}`); +} + export function addMenuApi(data) { return postReq('/api/v1/menus', data); } diff --git a/src/pages/system/view/menu/form.vue b/src/pages/system/view/menu/form.vue index d31e689..144b46f 100644 --- a/src/pages/system/view/menu/form.vue +++ b/src/pages/system/view/menu/form.vue @@ -10,10 +10,10 @@ - + - + @@ -31,7 +31,7 @@