chore: lazy load auth toolbar
This commit is contained in:
@@ -16,8 +16,6 @@ const logo = computed(() => preferences.logo.source);
|
|||||||
:logo="logo"
|
:logo="logo"
|
||||||
:page-description="$t('authentication.pageDesc')"
|
:page-description="$t('authentication.pageDesc')"
|
||||||
:page-title="$t('authentication.pageTitle')"
|
:page-title="$t('authentication.pageTitle')"
|
||||||
>
|
:toolbar="false"
|
||||||
<!-- 自定义工具栏 -->
|
/>
|
||||||
<!-- <template #toolbar></template> -->
|
|
||||||
</AuthPageLayout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { ToolbarType } from './types';
|
import type { ToolbarType } from './types';
|
||||||
|
|
||||||
|
import { defineAsyncComponent } from 'vue';
|
||||||
|
|
||||||
import { preferences, usePreferences } from '@vben/preferences';
|
import { preferences, usePreferences } from '@vben/preferences';
|
||||||
|
|
||||||
import { Copyright } from '../basic/copyright';
|
import { Copyright } from '../basic/copyright';
|
||||||
import AuthenticationFormView from './form.vue';
|
import AuthenticationFormView from './form.vue';
|
||||||
import SloganIcon from './icons/slogan.vue';
|
import SloganIcon from './icons/slogan.vue';
|
||||||
import Toolbar from './toolbar.vue';
|
|
||||||
|
const Toolbar = defineAsyncComponent(() => import('./toolbar.vue'));
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
appName?: string;
|
appName?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user