diff --git a/packages/business/layouts/src/basic/layout.vue b/packages/business/layouts/src/basic/layout.vue
index 2dcc1a59..a2202c0a 100644
--- a/packages/business/layouts/src/basic/layout.vue
+++ b/packages/business/layouts/src/basic/layout.vue
@@ -103,56 +103,38 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
- updatePreferences({
- sidebar: {
- extraCollapse: value,
- },
- })
+ @side-mouse-leave="handleSideMouseLeave"
+ @update:side-collapse="
+ (value: boolean) => updatePreferences({ sidebar: { collapse: value } })
"
@update:side-expand-on-hover="
(value: boolean) =>
- updatePreferences({
- sidebar: {
- expandOnHover: value,
- },
- })
+ updatePreferences({ sidebar: { expandOnHover: value } })
"
- @update:side-collapse="
+ @update:side-extra-collapse="
(value: boolean) =>
- updatePreferences({
- sidebar: {
- collapse: value,
- },
- })
+ updatePreferences({ sidebar: { extraCollapse: value } })
"
- @side-mouse-leave="handleSideMouseLeave"
@update:side-visible="
- (value: boolean) =>
- updatePreferences({
- sidebar: {
- enable: value,
- },
- })
+ (value: boolean) => updatePreferences({ sidebar: { enable: value } })
"
>
@@ -167,12 +149,12 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
@@ -184,19 +166,19 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
>
@@ -211,44 +193,44 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
diff --git a/packages/business/layouts/src/basic/menu/extra-menu.vue b/packages/business/layouts/src/basic/menu/extra-menu.vue
index c86e5c0a..aadea248 100644
--- a/packages/business/layouts/src/basic/menu/extra-menu.vue
+++ b/packages/business/layouts/src/basic/menu/extra-menu.vue
@@ -27,11 +27,11 @@ async function handleSelect(key: string) {
diff --git a/packages/business/layouts/src/basic/menu/mixed-menu.vue b/packages/business/layouts/src/basic/menu/mixed-menu.vue
index ea761cf7..bfef640c 100644
--- a/packages/business/layouts/src/basic/menu/mixed-menu.vue
+++ b/packages/business/layouts/src/basic/menu/mixed-menu.vue
@@ -42,12 +42,12 @@ onBeforeMount(() => {
emit('enter', menu)"
+ @select="handleSelect"
/>
diff --git a/packages/business/layouts/src/basic/tabs/tabs.vue b/packages/business/layouts/src/basic/tabs/tabs.vue
index f5c0df8a..841caeb7 100644
--- a/packages/business/layouts/src/basic/tabs/tabs.vue
+++ b/packages/business/layouts/src/basic/tabs/tabs.vue
@@ -21,12 +21,12 @@ const {
diff --git a/packages/business/layouts/src/basic/widgets/breadcrumb.vue b/packages/business/layouts/src/basic/widgets/breadcrumb.vue
index 58b2f12a..bc4d5215 100644
--- a/packages/business/layouts/src/basic/widgets/breadcrumb.vue
+++ b/packages/business/layouts/src/basic/widgets/breadcrumb.vue
@@ -75,15 +75,15 @@ function handleSelect(path: string) {
diff --git a/packages/business/layouts/src/iframe/iframe-router-view.vue b/packages/business/layouts/src/iframe/iframe-router-view.vue
index 2adfbd2a..572befa6 100644
--- a/packages/business/layouts/src/iframe/iframe-router-view.vue
+++ b/packages/business/layouts/src/iframe/iframe-router-view.vue
@@ -70,8 +70,8 @@ function showSpinning(index: number) {
{{ iframeRoutes.length }}