|
|
@@ -5,7 +5,7 @@ import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '/@/router/routes/basic';
|
|
|
import { mainOutRoutes } from './mainOut';
|
|
|
import { PageEnum } from '/@/enums/pageEnum';
|
|
|
import { t } from '/@/hooks/web/useI18n';
|
|
|
-
|
|
|
+import { LAYOUT } from '/@/router/constant';
|
|
|
const modules = import.meta.globEager('./modules/**/*.ts');
|
|
|
|
|
|
const routeModuleList: AppRouteModule[] = [];
|
|
|
@@ -36,9 +36,32 @@ export const LoginRoute: AppRouteRecordRaw = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+export const WelcomeRoute: AppRouteRecordRaw = {
|
|
|
+ path: '/welcome',
|
|
|
+ name: 'Welcome',
|
|
|
+ component: LAYOUT,
|
|
|
+ redirect: '/welcome/index',
|
|
|
+ // component: () => import('/@/views/welcome/index.vue'),
|
|
|
+ meta: {
|
|
|
+ title: t('routes.basic.welcome'),
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ name: 'welcome',
|
|
|
+ component: () => import('/@/views/welcome/index.vue'),
|
|
|
+ meta: {
|
|
|
+ title: t('routes.basic.welcomeLogin'),
|
|
|
+ hideMenu: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+};
|
|
|
+
|
|
|
// Basic routing without permission
|
|
|
export const basicRoutes = [
|
|
|
LoginRoute,
|
|
|
+ WelcomeRoute,
|
|
|
RootRoute,
|
|
|
...mainOutRoutes,
|
|
|
REDIRECT_ROUTE,
|