From 09f7a36edd6cb85e717734acd74d9ba56f2f8aad Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sat, 5 Feb 2022 02:01:46 +0800 Subject: [PATCH] update redirect --- src/pages/auth/Login.vue | 111 +++++++-------------------------------- src/router/index.ts | 13 ++--- 2 files changed, 21 insertions(+), 103 deletions(-) diff --git a/src/pages/auth/Login.vue b/src/pages/auth/Login.vue index b53c3ec7..3228a526 100644 --- a/src/pages/auth/Login.vue +++ b/src/pages/auth/Login.vue @@ -1,113 +1,38 @@ diff --git a/src/router/index.ts b/src/router/index.ts index cd6c62e6..5801b971 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -2,18 +2,11 @@ import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router import auth from './auth'; import store from '@/store'; -const routes = [ - { - path: '/', - name: 'home', - redirect: '/auth/login' - }, - auth -]; +const routes = [auth]; const router = createRouter({ - // history: createWebHistory(), - history: createWebHashHistory(), + history: createWebHistory(), + // history: createWebHashHistory(), routes });