mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
refactor: 使用eslint.config.js替换.eslintrc.js并遵循esm语法 (#786)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import Axios, {
|
||||
AxiosInstance,
|
||||
AxiosRequestConfig,
|
||||
CustomParamsSerializer
|
||||
type AxiosInstance,
|
||||
type AxiosRequestConfig,
|
||||
type CustomParamsSerializer
|
||||
} from "axios";
|
||||
import {
|
||||
import type {
|
||||
PureHttpError,
|
||||
RequestMethods,
|
||||
PureHttpResponse,
|
||||
|
||||
2
src/utils/http/types.d.ts
vendored
2
src/utils/http/types.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import Axios, {
|
||||
import type {
|
||||
Method,
|
||||
AxiosError,
|
||||
AxiosResponse,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import forage from "localforage";
|
||||
import { LocalForage, ProxyStorage, ExpiresData } from "./types.d";
|
||||
import type { LocalForage, ProxyStorage, ExpiresData } from "./types.d";
|
||||
|
||||
class StorageProxy implements ProxyStorage {
|
||||
protected storage: LocalForage;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type VNode } from "vue";
|
||||
import type { VNode } from "vue";
|
||||
import { isFunction } from "@pureadmin/utils";
|
||||
import { type MessageHandler, ElMessage } from "element-plus";
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import type { CSSProperties, VNodeChild } from "vue";
|
||||
import {
|
||||
createTypes,
|
||||
toValidableType,
|
||||
VueTypesInterface,
|
||||
VueTypeValidableDef
|
||||
type VueTypesInterface,
|
||||
type VueTypeValidableDef
|
||||
} from "vue-types";
|
||||
|
||||
export type VueNode = VNodeChild | JSX.Element;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 响应式storage
|
||||
import { App } from "vue";
|
||||
import type { App } from "vue";
|
||||
import Storage from "responsive-storage";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
import { responsiveStorageNameSpace } from "@/config";
|
||||
|
||||
@@ -40,8 +40,8 @@ import { subBefore, getQueryMap } from "@pureadmin/utils";
|
||||
setToken(params);
|
||||
|
||||
// 删除不需要显示在 url 的参数
|
||||
delete params["roles"];
|
||||
delete params["accessToken"];
|
||||
delete params.roles;
|
||||
delete params.accessToken;
|
||||
|
||||
const newUrl = `${location.origin}${location.pathname}${subBefore(
|
||||
location.hash,
|
||||
|
||||
Reference in New Issue
Block a user