From c7f3fd5215399b37d0511b3bd555150ff1b13507 Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期一, 29 四月 2024 10:39:30 +0800 Subject: [PATCH] fix:回退原先版本 --- src/router/index.ts | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 08aa943..8c7a0f6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,8 +1,9 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHashHistory } from 'vue-router' import DashboardView from '../views/dashboard/index.vue' - +import loginView from '../views/login/loginView.vue' +//import DashboardView from '../views/newDashboard/index.vue' const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ { path: '/', @@ -10,6 +11,11 @@ component: DashboardView }, { + path: '/login', + name: 'login', + component: loginView + }, + { path: '/:error*', redirect: '/' } -- Gitblit v1.8.0