Trim layout widgets runtime
This commit is contained in:
@@ -33,9 +33,6 @@ const AuthenticationLoginExpiredModal = defineAsyncComponent(() =>
|
||||
const UserDropdown = defineAsyncComponent(() =>
|
||||
import('@vben/layouts/es/user-dropdown').then((module) => module.UserDropdown),
|
||||
);
|
||||
const LockScreen = defineAsyncComponent(() =>
|
||||
import('@vben/layouts/es/lock-screen').then((module) => module.LockScreen),
|
||||
);
|
||||
const NotificationPopup = defineAsyncComponent(
|
||||
() => import('#/components/notification/NotificationPopup.vue'),
|
||||
);
|
||||
@@ -275,7 +272,7 @@ watch(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<BasicLayout @clear-preferences-and-logout="handleLogout">
|
||||
<BasicLayout>
|
||||
<template #user-dropdown>
|
||||
<UserDropdown
|
||||
:avatar
|
||||
@@ -336,8 +333,5 @@ watch(
|
||||
<LoginForm />
|
||||
</AuthenticationLoginExpiredModal>
|
||||
</template>
|
||||
<template #lock-screen>
|
||||
<LockScreen :avatar @to-login="handleLogout" />
|
||||
</template>
|
||||
</BasicLayout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user