perf: Use Imports Instead of Aliases

This commit is contained in:
vben
2024-06-16 23:40:52 +08:00
parent 07d1f85ff7
commit 6ffec31ce8
19 changed files with 41 additions and 140 deletions

View File

@@ -2,9 +2,10 @@ import type { RouteRecordRaw } from 'vue-router';
import { VBEN_GITHUB_URL, VBEN_LOGO } from '@vben/constants';
import { BasicLayout, IFrameView } from '@/layouts';
import { $t } from '@vben/locales/helper';
import { BasicLayout, IFrameView } from '#/layouts';
const routes: RouteRecordRaw[] = [
{
component: BasicLayout,
@@ -20,7 +21,7 @@ const routes: RouteRecordRaw[] = [
{
name: 'VbenAbout',
path: 'about',
component: () => import('@/views/_essential/vben/about/index.vue'),
component: () => import('#/views/_essential/vben/about/index.vue'),
meta: {
icon: 'mdi:creative-commons',
title: $t('page.vben.about'),