From 68eee6caeec1753bfba8c937ab862ef05cb42bb8 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期二, 14 五月 2024 16:36:13 +0800 Subject: [PATCH] biji --- src/router/index.ts | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 775ed51..9664723 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: '/', @@ -24,6 +24,12 @@ name: 'home', meta: { auth: true }, component: Home + }, + { + path: '/dictionary', + name: 'dictionary', + meta: { auth: true }, + component: () =>import('@/views/components/dictionary.vue') } ] } -- Gitblit v1.9.1