refactor: Vite2的别名方式修改后对应引用路径调整

This commit is contained in:
郝先瑞
2022-01-01 16:17:15 +08:00
parent 27895348da
commit 17cbe2787d
15 changed files with 61 additions and 129 deletions

View File

@@ -194,15 +194,15 @@ export default defineConfig({
replacement: path.resolve("./src/assets/images")
},
{
find: "@router",
find: "@/router",
replacement: path.resolve("./src/router")
},
{
find: "@store",
find: "@/store",
replacement: path.resolve("./src/store")
},
{
find: "@api",
find: "@/api",
replacement: path.resolve("./src/api")
}
]
@@ -380,7 +380,7 @@ export const Session = {
```typescript
import axios from "axios";
import {ElMessage, ElMessageBox} from "element-plus";
import {Session} from "@utils/storage";
import {Session} from "@/utils/storage";
// 创建 axios 实例