沈丘营商办后台前端项目
王恒
2025-08-06 860406f6cb16c77621a5f583a5214f9f3e370eb0
src/router/index.ts
@@ -1,6 +1,7 @@
import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router";
/* Layout */
import Layout from "@/layout/index.vue";
import path from "path";
/**
 * Note: 路由配置项
@@ -56,6 +57,10 @@
    path: "/401",
    component: () => import("@/views/error/401.vue"),
    hidden: true,
  },
  {
    path: '/main',
    component: () => import("@/views/main/indexMarge.vue"),
  },
  {
    path: "",
@@ -161,7 +166,8 @@
];
const router = createRouter({
  history: createWebHistory("/sqys-web/"),
  // history: createWebHistory("/sqys-web/"),
  history: createWebHistory("/smrq/"),
  routes: constantRoutes,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {