From b08d7870ff0538e50a7ca9bcd29ca88a556fd0eb Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 13 Apr 2022 17:34:14 +0800 Subject: [PATCH] feat: router use hash history Signed-off-by: Ryan Wang --- src/router/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 0eb87707..7622695c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,8 +1,8 @@ -import { createRouter, createWebHistory } from "vue-router"; +import { createRouter, createWebHashHistory } from "vue-router"; import routesConfig from "@/router/routes.config"; const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(import.meta.env.BASE_URL), routes: routesConfig, scrollBehavior: () => ({ left: 0, top: 0 }), });