zzz-pc-view 0.0.123 → 0.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zzz-pc-view",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.125",
|
|
4
4
|
"main": "src/index.umd.js",
|
|
5
5
|
"module": "src/index.es.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"vue": "^3.5.13",
|
|
16
16
|
"vue-router": "^4.4.5",
|
|
17
|
-
"pinia": "^2.2.6",
|
|
18
17
|
"axios": "^1.7.9",
|
|
19
18
|
"crypto-js": "^4.2.0",
|
|
20
19
|
"@types/crypto-js": "^4.2.2",
|
package/src/decorators/api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const setApi: (option: {
|
|
|
13
13
|
axiosOptions: import('axios').CreateAxiosDefaults;
|
|
14
14
|
errorDataCode: httpRequest.HttpRequestError["code"];
|
|
15
15
|
requestIntercept?(requestConfig: import('axios').InternalAxiosRequestConfig): import('axios').InternalAxiosRequestConfig | Promise<import('axios').InternalAxiosRequestConfig>;
|
|
16
|
+
responseIntercept?(response: import('axios').AxiosResponse): import('axios').AxiosResponse | Promise<import('axios').AxiosResponse>;
|
|
16
17
|
errorHandler?(error: httpRequest.HttpRequestError): Promise<httpRequest.HttpRequestError>;
|
|
17
18
|
dataCodeProp?: string | number;
|
|
18
19
|
dataSuccessCodeRanges?: ([number, number] | number | string)[];
|
package/src/index.es.js
CHANGED
|
@@ -1794,7 +1794,7 @@ const bindCatchAjaxSource = (request, catchFn) => {
|
|
|
1794
1794
|
const CancelToken = axios.CancelToken;
|
|
1795
1795
|
const ABORTED_CODE = "ABORTED";
|
|
1796
1796
|
const create = (option) => {
|
|
1797
|
-
const { requestIntercept } = option;
|
|
1797
|
+
const { requestIntercept, responseIntercept } = option;
|
|
1798
1798
|
const dataCodeProp = option.dataCodeProp || "code";
|
|
1799
1799
|
const dataSuccessCodeRanges = option.dataSuccessCodeRanges || [[200, 300], 0];
|
|
1800
1800
|
const dataMsgProp = option.dataMsgProp || "msg";
|
|
@@ -1803,6 +1803,9 @@ const create = (option) => {
|
|
|
1803
1803
|
if (requestIntercept) {
|
|
1804
1804
|
axiosInstance.interceptors.request.use(requestIntercept);
|
|
1805
1805
|
}
|
|
1806
|
+
if (responseIntercept) {
|
|
1807
|
+
axiosInstance.interceptors.response.use(responseIntercept);
|
|
1808
|
+
}
|
|
1806
1809
|
axiosInstance.interceptors.response.use(
|
|
1807
1810
|
// 处理成功的响应
|
|
1808
1811
|
(response2) => {
|
|
@@ -4177,6 +4180,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4177
4180
|
chartInstance = void 0;
|
|
4178
4181
|
};
|
|
4179
4182
|
const resize = () => {
|
|
4183
|
+
console.log(111);
|
|
4180
4184
|
chartInstance == null ? void 0 : chartInstance.resize();
|
|
4181
4185
|
};
|
|
4182
4186
|
let windowResizeTimer;
|