Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit adb859a

Browse files
refactor: ♻️ 修改路径
1 parent 2d9c6b0 commit adb859a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

‎src/components/layouts/components/Header/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import { SizeType } from "antd/es/config-provider/SizeContext";
1717
import { useDispatch, useSelector } from "@/store";
1818
import { updateCollapsed } from "@/store/module/sidebar";
1919
import { setComponentSize, setLanguage } from "@/store/module/global";
20-
import ThemeComp from "@/components/layouts/components/Theme/index";
21-
import FullScreen from "@/components/layouts/components/FullScreen";
20+
import ThemeComp from "../Theme/index";
21+
import FullScreen from "../FullScreen/index";
2222
import SvgIcon from "@/components/svgIcon";
2323

2424
const { Header } = Layout;

‎tsconfig.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
"noEmit": true,
1818
"jsx": "react-jsx",
1919
// 解析非相对模块名的基准目录
20-
"baseUrl": "./",
20+
"baseUrl": ".",
2121
// 模块名到基于 baseUrl的路径映射的列表。
2222
"paths": {
23-
"@": [
24-
"src"
25-
],
2623
"@/*": [
2724
"src/*"
2825
]

‎vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig((mode: ConfigEnv): UserConfig => {
2525
resolve: {
2626
// 路径别名
2727
alias: {
28-
"@": resolve(__dirname, "./src")
28+
"@": resolve(__dirname, "src")
2929
},
3030
extensions: [".mjs", ".js", ".ts", ".tsx", ".json"]
3131
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /