From 0585c81d3f85a41e0e923ae3a804f4df0e5f9dee Mon Sep 17 00:00:00 2001 From: midfar Date: Fri, 3 Mar 2023 18:18:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20url=E6=A8=A1=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index a4baa27..518ffc2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createRouter, createWebHashHistory } from 'vue-router'; +import { createRouter, createWebHistory } from 'vue-router'; // createWebHashHistory, createWebHistory /* Layout */ const Layout = () => import('@/layout'); @@ -388,7 +388,8 @@ export const asyncRoutes = [ ]; const createTheRouter = () => createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + // history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHistory(import.meta.env.BASE_URL), scrollBehavior: () => ({ top: 0 }), routes: constantRoutes });