From cb99768a728002372bcb80885de2b4b2cd52e303 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 09 九月 2024 14:10:32 +0800 Subject: [PATCH] 1. 修复轨迹动画无法运行的问题 --- src/router/index.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index a5d2520..1c06db5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,11 +1,12 @@ -import { createRouter, createWebHistory } from 'vue-router'; +import { createRouter, createWebHashHistory } from 'vue-router'; const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + // history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(), routes: [ { path: '/', - redirect: '/index/hmode' + redirect: '/login' }, // 鐧婚檰椤甸潰 { @@ -24,6 +25,11 @@ name: 'historyMode', component: () => import('@/views/historymode/HistoryMode.vue') }, + { + path: 'hmode2', + name: 'historyMode2', + component: () => import('@/views/historymode/HistoryMode2.vue') + }, // 璧拌埅鐩戞祴 { path: 'rmode', -- Gitblit v1.9.3