From 051cc2765e39cced772fa6ef9efb25190a1c20b2 Mon Sep 17 00:00:00 2001 From: AN <1983933789@qq.com> Date: Fri, 16 May 2025 15:58:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=B7=AF=E5=BE=84=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/modules/menu-operate-drawer.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/system/menu/modules/menu-operate-drawer.vue b/src/views/system/menu/modules/menu-operate-drawer.vue index 3447cf45..4bd3ec34 100644 --- a/src/views/system/menu/modules/menu-operate-drawer.vue +++ b/src/views/system/menu/modules/menu-operate-drawer.vue @@ -102,6 +102,9 @@ function handleInitModel() { if (props.operateType === 'edit' && props.rowData) { Object.assign(model, props.rowData); + if (isMenu.value && model.isFrame === '1') { + model.component = model.component?.slice(0, -6); + } iconType.value = model.icon?.startsWith('local-icon-') ? '2' : '1'; if (model.isFrame !== '2') { @@ -147,6 +150,8 @@ async function handleSubmit() { component = 'Layout'; } else if (isFrame === '2') { component = 'FrameView'; + } else if (isMenu.value && model.isFrame === '1') { + component = component?.endsWith('/index') ? component : `${component}/index`; } // request @@ -286,6 +291,7 @@ function onCreate() { views/ + /index.vue