| | |
| | | import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router";
|
| | | /* Layout */
|
| | | import Layout from "@/layout/index.vue";
|
| | | import path from "path";
|
| | |
|
| | | /**
|
| | | * Note: 路由配置项
|
| | |
| | | path: "/401",
|
| | | component: () => import("@/views/error/401.vue"),
|
| | | hidden: true,
|
| | | },
|
| | | {
|
| | | path: '/main',
|
| | | component: () => import("@/views/main/indexMarge.vue"),
|
| | | },
|
| | | {
|
| | | path: "",
|
| | |
| | | ];
|
| | |
|
| | | const router = createRouter({
|
| | | history: createWebHistory(),
|
| | | history: createWebHistory("/sqys-web/"),
|
| | | routes: constantRoutes,
|
| | | scrollBehavior(to, from, savedPosition) {
|
| | | if (savedPosition) {
|