From fa482274a588e97784c10099e45d030664aa4ceb Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期四, 26 九月 2024 10:42:02 +0800 Subject: [PATCH] 登录界面添加新用户注册功能 --- src/router/index.ts | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index e230a4b..0644622 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from 'vue-router'; +import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'; import NProgress from 'nprogress'; // progress bar import 'nprogress/nprogress.css'; @@ -9,7 +9,8 @@ NProgress.configure({ showSpinner: false }); // NProgress Configuration const router = createRouter({ - history: createWebHistory(), + //history: createWebHistory(), + history: createWebHashHistory(), routes: [ { path: '/', -- Gitblit v1.8.0