refactor: Vite2的别名方式修改后对应引用路径调整
This commit is contained in:
@@ -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 实例
|
||||
|
||||
Reference in New Issue
Block a user