From 7215bacd77a7351248e93e0d765a6ef82ce0f347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Fri, 18 Feb 2022 23:57:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(Menu.vue):=20=E6=95=B0=E6=8D=AE=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=B7=BB=E5=8A=A0=E5=A4=96=E9=93=BE=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/components/Menu.vue | 34 +++++++++++++++++------ 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/src/views/system/menu/components/Menu.vue b/src/views/system/menu/components/Menu.vue index 3c814e11..013bf0bc 100644 --- a/src/views/system/menu/components/Menu.vue +++ b/src/views/system/menu/components/Menu.vue @@ -104,18 +104,18 @@ - - + + - + - + { state.formData = response.data + const path = state.formData.path + state.isExternalPath = isExternal(path); }) } @@ -383,12 +399,12 @@ function cancel() { function showSelectIcon() { (iconSelectRef as any).value.reset(); - showChooseIcon.value = true; + state.showChooseIcon = true; } function selected(name: string) { state.formData.icon = name; - showChooseIcon.value = false; + state.showChooseIcon = false; } onMounted(() => {