ztxkutils 2.9.1 → 2.9.4
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/dist/fileOperation.js +6 -0
- package/dist/index.js +2 -2
- package/dist/{reqUrl-88fcc5c5.js → reqUrl-41d0836e.js} +1 -1
- package/dist/reqUrl.js +1 -1
- package/dist/request-9ceb2f4c.js +2767 -0
- package/dist/request.d.ts +1 -1
- package/dist/request.js +1 -1
- package/package.json +1 -1
- package/dist/tools-243bb17e.js +0 -297
- package/dist/tools-6422df68.js +0 -329
- package/dist/tools-aa1fafe4.js +0 -294
package/dist/fileOperation.js
CHANGED
@@ -59,6 +59,9 @@ function downloadFileCallBack(apiUrl, fileId, fileName, otherOption) {
|
|
59
59
|
callbackError && callbackError();
|
60
60
|
}
|
61
61
|
};
|
62
|
+
xhr.onerror = function (err) {
|
63
|
+
callbackError && callbackError();
|
64
|
+
};
|
62
65
|
xhr.send();
|
63
66
|
}
|
64
67
|
/**
|
@@ -93,6 +96,9 @@ function downloadPublicFile(apiUrl, fileId, fileName, otherOption) {
|
|
93
96
|
callbackError && callbackError();
|
94
97
|
}
|
95
98
|
};
|
99
|
+
xhr.onerror = function (err) {
|
100
|
+
callbackError && callbackError();
|
101
|
+
};
|
96
102
|
xhr.send();
|
97
103
|
}
|
98
104
|
/**
|
package/dist/index.js
CHANGED
@@ -2,8 +2,8 @@ export { c as authority } from './authority-5bc06c1a.js';
|
|
2
2
|
export { d as dataModel } from './dataModel-1fbaff40.js';
|
3
3
|
export { t as tools } from './tools-1e6fe951.js';
|
4
4
|
export { v as validate } from './validate-3e15dd74.js';
|
5
|
-
export { r as request } from './request-
|
6
|
-
export { r as reqUrl } from './reqUrl-
|
5
|
+
export { r as request } from './request-9ceb2f4c.js';
|
6
|
+
export { r as reqUrl } from './reqUrl-41d0836e.js';
|
7
7
|
import './tslib.es6-f9459658.js';
|
8
8
|
import 'dayjs';
|
9
9
|
import 'number-precision';
|
@@ -14,7 +14,7 @@ function getReqUrl(processObj) {
|
|
14
14
|
var ZT_FILE_PREVIEW_DEV = processObj.REACT_APP_ZT_FILE_PREVIEW_DEV || 'http://192.168.0.83:88'; // 开发环境
|
15
15
|
var ZT_FILE_PREVIEW_TEST = processObj.REACT_APP_ZT_FILE_PREVIEW_TEST || 'http://172.55.5.101:33013'; // 测试环境 https://192.168.0.135:18012
|
16
16
|
var ZT_FILE_PREVIEW_STAGE = processObj.REACT_APP_ZT_FILE_PREVIEW_STAGE ||
|
17
|
-
'
|
17
|
+
'https://dzfile-prod.zmd.com.cn/'; // 阶段性环境 http://192.168.0.134:8012
|
18
18
|
var ZT_FILE_PREVIEW_PRODUCT = processObj.REACT_APP_ZT_FILE_PREVIEW_PRODUCT ||
|
19
19
|
'https://dzfile.zmd.com.cn:8012'; // 生产环境
|
20
20
|
// 字体文件附件id
|
package/dist/reqUrl.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { g as getReqUrl } from './reqUrl-
|
1
|
+
export { g as getReqUrl } from './reqUrl-41d0836e.js';
|