Compare commits

...

2 Commits

Author SHA1 Message Date
xuziqiang
5318f0f46c Merge branch 'main' of http://123.60.103.97:3000/xuziqiang/SaaS-lib 2024-05-22 13:42:00 +08:00
xuziqiang
de932dfe22 fix: 修改路由模式hash 2024-05-22 13:41:59 +08:00

View File

@@ -1,14 +1,14 @@
import type { App } from 'vue';
import type { RouteRecord } from 'vue-router';
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import { routes, ALLRoute, WHITE_NAME_LIST } from './routes';
import { useRouteStore } from '/nerv-base/store/modules/route';
import { createPermissionGuard } from '/nerv-lib/saas/router/guard/permission-guard';
// app router
export const router = createRouter({
history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH as string),
history: createWebHashHistory(import.meta.env.VITE_PUBLIC_PATH as string),
routes: ALLRoute,
strict: true,
scrollBehavior: () => ({ left: 0, top: 0 }),