diff --git a/src/app.ts b/src/app.ts index 7aa5452..d5281b5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -66,7 +66,9 @@ export async function createAppInstance() { { path: '/login', name: 'login', - component: () => import('./pages/Login.vue'), + component: import.meta.env.VITE_DEMO_MODE === 'true' + ? () => import('./pages/LoginDemo.vue') + : () => import('./pages/Login.vue'), meta: { requiresAuth: false } }, // Pre-register module routes diff --git a/src/pages/LoginDemo.vue b/src/pages/LoginDemo.vue new file mode 100644 index 0000000..f90aaa7 --- /dev/null +++ b/src/pages/LoginDemo.vue @@ -0,0 +1,231 @@ + + +