From addf986b8665dc619017c5916fde96e399e6e02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Tue, 25 Jun 2024 14:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=A8=A1=E5=BC=8F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 2b747cd..014db4f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,29 +1,31 @@ -import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' -// import Layout from '../components/HelloWorld.vue' +import { createRouter, createWebHistory,createWebHashHistory, RouteRecordRaw } from 'vue-router' +import Home from '@/views/Home/index.vue' +import CallHandle from '@/views/CallHandle/index.vue' +import Signin from '@/views/Signin/index.vue' const routes : Array = [ { //路由初始指向 path: '/', name: 'Home', - component: () => import('@/views/Home/index.vue'), + component: Home, }, { //呼叫 path: '/callHandle', name: 'CallHandle', - component: () => import('@/views/CallHandle/index.vue'), + component: CallHandle, }, { //签到 path: '/signIn', name: 'Signin', - component: () => import('@/views/Signin/index.vue'), + component: Signin, } ] const router = createRouter({ - history: createWebHistory(), + history: createWebHashHistory(), routes })