From 7be007bd93ae0ec6eee9b0931f8a1de98123889d Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 05 二月 2024 09:58:02 +0800 Subject: [PATCH] 添加登录页 --- src/router/index.ts | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 08aa943..ec59a01 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,5 +1,6 @@ import { createRouter, createWebHistory } from 'vue-router' import DashboardView from '../views/dashboard/index.vue' +import loginView from '../views/login/loginView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -10,6 +11,11 @@ component: DashboardView }, { + path: '/login', + name: 'login', + component: loginView + }, + { path: '/:error*', redirect: '/' } -- Gitblit v1.8.0