Compare commits
2 Commits
3958d730f0
...
5318f0f46c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5318f0f46c | ||
|
|
de932dfe22 |
@@ -1,14 +1,14 @@
|
|||||||
import type { App } from 'vue';
|
import type { App } from 'vue';
|
||||||
import type { RouteRecord } from 'vue-router';
|
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 { routes, ALLRoute, WHITE_NAME_LIST } from './routes';
|
||||||
import { useRouteStore } from '/nerv-base/store/modules/route';
|
import { useRouteStore } from '/nerv-base/store/modules/route';
|
||||||
import { createPermissionGuard } from '/nerv-lib/saas/router/guard/permission-guard';
|
import { createPermissionGuard } from '/nerv-lib/saas/router/guard/permission-guard';
|
||||||
|
|
||||||
// app router
|
// app router
|
||||||
export const router = createRouter({
|
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,
|
routes: ALLRoute,
|
||||||
strict: true,
|
strict: true,
|
||||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||||
|
|||||||
Reference in New Issue
Block a user