Skip to content

Commit

Permalink
refactor: ♻️ 修改引用路径
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-czy committed Dec 19, 2023
1 parent e79909f commit 9aeb2b8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/layouts/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { SizeType } from "antd/es/config-provider/SizeContext";
import { useDispatch, useSelector } from "@/store";
import { updateCollapsed } from "@/store/module/sidebar";
import { setComponentSize, setLanguage } from "@/store/module/global";
import ThemeComp from "../Theme";
import FullScreen from "../FullScreen";
import ThemeComp from "@/components/layouts/components/Theme";

Check failure on line 20 in src/components/layouts/components/Header/index.tsx

View workflow job for this annotation

GitHub Actions / build-and-deploy

Cannot find module '@/components/layouts/components/Theme' or its corresponding type declarations.
import FullScreen from "@/components/layouts/components/FullScreen";
import SvgIcon from "@/components/svgIcon";

const { Header } = Layout;
Expand Down
2 changes: 0 additions & 2 deletions src/routers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import React from "react";
import { RouteObject } from "@/routers/type";
import lazyLoad from "@/components/lazyLoad";
import Login from "@/views/login";
// 懒加载组件
// const Login = lazy(() => import('../views/login'))

// 导入其他模块路由
const moduleRoute = import.meta.glob("./modules/*", {
Expand Down
2 changes: 1 addition & 1 deletion src/routers/modules/error.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import lazyLoad from "@/components/lazyLoad";
import { RouteObject } from "../type";
import { RouteObject } from "@/routers/type";

const errorRoute: RouteObject[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/routers/modules/home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import lazyLoad from "@/components/lazyLoad";
import { RouteObject } from "../type";
import { RouteObject } from "@/routers/type";
import Layouts from "@/components/layouts";

const homeRoute: RouteObject[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/routers/modules/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { RouteObject } from "../type";
import { RouteObject } from "@/routers/type";
import lazyLoad from "@/components/lazyLoad";
import Layouts from "@/components/layouts";

Expand Down
2 changes: 1 addition & 1 deletion src/routers/modules/static.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { RouteObject } from "../type";
import { RouteObject } from "@/routers/type";
import lazyLoad from "@/components/lazyLoad";
import Layouts from "@/components/layouts";

Expand Down
2 changes: 1 addition & 1 deletion src/store/module/global.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { SizeType } from "antd/es/config-provider/SizeContext";

import { globalType } from "../type";
import { globalType } from "@/store/type";

const initialState: globalType = {
token: "",
Expand Down
2 changes: 1 addition & 1 deletion src/store/module/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadAction, createSlice } from "@reduxjs/toolkit";

import { sidebarType } from "../type";
import { sidebarType } from "@/store/type";

const initialState: sidebarType = {
isCollapsed: true
Expand Down

0 comments on commit 9aeb2b8

Please sign in to comment.