refactor: 使用@/别名替换/@/别名

This commit is contained in:
xiaoxian521
2022-10-27 13:17:56 +08:00
parent 6ceb37624f
commit 7d419c3b35
50 changed files with 153 additions and 158 deletions

View File

@@ -1,6 +1,6 @@
import Cookies from "js-cookie";
import { storageSession } from "@pureadmin/utils";
import { useUserStoreHook } from "/@/store/modules/user";
import { useUserStoreHook } from "@/store/modules/user";
export interface DataInfo<T> {
/** token */

View File

@@ -3,7 +3,7 @@
### Get 请求
```
import { http } from "/@/utils/http";
import { http } from "@/utils/http";
// params传参
http.request('get', '/xxx', { params: param });
@@ -15,7 +15,7 @@ http.request('get', '/xxx?message=' + msg);
### Post 请求
```
import { http } from "/@/utils/http";
import { http } from "@/utils/http";
// params传参
http.request('post', '/xxx', { params: param });

View File

@@ -12,8 +12,8 @@ import {
import { stringify } from "qs";
import NProgress from "../progress";
// import { loadEnv } from "@build/index";
import { getToken } from "/@/utils/auth";
import { useUserStoreHook } from "/@/store/modules/user";
import { getToken } from "@/utils/auth";
import { useUserStoreHook } from "@/store/modules/user";
// 加载环境变量 VITE_PROXY_DOMAIN开发环境 VITE_PROXY_DOMAIN_REAL打包后的线上环境
// const { VITE_PROXY_DOMAIN, VITE_PROXY_DOMAIN_REAL } = loadEnv();

View File

@@ -1,7 +1,7 @@
// 响应式storage
import { App } from "vue";
import Storage from "responsive-storage";
import { routerArrays } from "/@/layout/types";
import { routerArrays } from "@/layout/types";
const nameSpace = "responsive-";