沈丘营商办后台前端项目
wangyuhang
7 天以前 978b01add7819f41682098ddc312013eb21656f3
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: 路由配置项
@@ -58,9 +59,13 @@
    hidden: true,
  },
  {
    path: '/main',
    component: () => import("@/views/main/indexMarge.vue"),
  },
  {
    path: "",
    component: Layout,
    redirect: "/index",
    redirect: "/home",
    children: [
      // {
      //   path: "/index",
@@ -161,7 +166,7 @@
];
const router = createRouter({
  history: createWebHistory(),
  history: createWebHistory("/sqys-web/"),
  routes: constantRoutes,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {