部分转载自https://blog.csdn.net/weixin_47450807/article/details/122994086
// 登录路由的配置
export const LoginRoute: AppRouteRecordRaw = {
path: '/login',
name: 'Login',
component: () => import('/@/views/sys/login/Login.vue'),
meta: {
title: t('routes.basic.login'),
},
};
// Basic routing without permission 基础路由不用权限
export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE];
这里引入全局组件 例如 useTitle useLocale