@fmdevui/fm-dev 1.0.111 → 1.0.113
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/es/core/api/base/index.d.ts +1 -0
- package/es/packages/core/api/base/index.mjs +11 -0
- package/index.js +12 -1
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +12 -1
- package/lib/core/api/base/index.d.ts +1 -0
- package/lib/packages/core/api/base/index.js +11 -0
- package/package.json +1 -1
- /package/es/{index.css → make-installer.css} +0 -0
|
@@ -6,6 +6,7 @@ export declare const useBaseApi: (module: string, options?: CustomAxiosRequestCo
|
|
|
6
6
|
pcomm: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
7
7
|
post: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
8
8
|
gcomm: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
9
|
+
download: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
9
10
|
get: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
10
11
|
page: (data: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
11
12
|
detail: (id: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
|
|
@@ -43,6 +43,17 @@ const useBaseApi = (module, options = {}) => {
|
|
|
43
43
|
cancel
|
|
44
44
|
);
|
|
45
45
|
},
|
|
46
|
+
download: function(data, action, cancel = false) {
|
|
47
|
+
return request(
|
|
48
|
+
{
|
|
49
|
+
responseType: "arraybuffer",
|
|
50
|
+
url: baseUrl + action,
|
|
51
|
+
method: "post",
|
|
52
|
+
data
|
|
53
|
+
},
|
|
54
|
+
cancel
|
|
55
|
+
);
|
|
56
|
+
},
|
|
46
57
|
get: function(params, action, cancel = false) {
|
|
47
58
|
return request(
|
|
48
59
|
{
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.113 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
@@ -23683,6 +23683,17 @@
|
|
|
23683
23683
|
cancel
|
|
23684
23684
|
);
|
|
23685
23685
|
},
|
|
23686
|
+
download: function(data, action, cancel = false) {
|
|
23687
|
+
return request(
|
|
23688
|
+
{
|
|
23689
|
+
responseType: "arraybuffer",
|
|
23690
|
+
url: baseUrl + action,
|
|
23691
|
+
method: "post",
|
|
23692
|
+
data
|
|
23693
|
+
},
|
|
23694
|
+
cancel
|
|
23695
|
+
);
|
|
23696
|
+
},
|
|
23686
23697
|
get: function(params, action, cancel = false) {
|
|
23687
23698
|
return request(
|
|
23688
23699
|
{
|