From 5994c7315c31d79c3d9102eee00eb8317c066425 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期四, 09 五月 2024 12:11:55 +0800 Subject: [PATCH] yanshi --- src/router/index.ts | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 775ed51..7088b74 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,10 +1,10 @@ -import { createRouter, createWebHashHistory } from 'vue-router' +import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router' import Layout from '@/layout/layout.vue' const Home = () => import('@/views/home.vue') const Login = () => import('@/views/login.vue') const router = createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', @@ -23,10 +23,11 @@ path: '/home', name: 'home', meta: { auth: true }, - component: Home + component: Home, } ] } + ] }) -- Gitblit v1.9.1