kmkf-work-order-service-component 0.0.1-alpha.5 → 0.0.1-alpha.6
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.
@@ -9,7 +9,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
9
9
|
* @Author: litian
|
10
10
|
* @Date: 2022-09-06 09:29:34
|
11
11
|
* @LastEditors: litian
|
12
|
-
* @LastEditTime: 2022-09-26
|
12
|
+
* @LastEditTime: 2022-09-26 17:22:56
|
13
13
|
*/
|
14
14
|
import { extend } from 'umi-request';
|
15
15
|
import { message } from 'antd';
|
@@ -46,8 +46,8 @@ var requestApi = function requestApi(_ref) {
|
|
46
46
|
headers: _objectSpread({
|
47
47
|
'Content-type': 'application/json;charset=UTF-8'
|
48
48
|
}, headers)
|
49
|
-
};
|
50
|
-
|
49
|
+
}; // const host = localStorage.getItem('kmkf_kmgd_host') || '';
|
50
|
+
|
51
51
|
var cookies = localStorage.getItem('kmkf_kmgd_cookie') ? (_localStorage$getItem = localStorage.getItem('kmkf_kmgd_cookie')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(':') : [];
|
52
52
|
|
53
53
|
if (cookies) {
|
@@ -60,7 +60,7 @@ var requestApi = function requestApi(_ref) {
|
|
60
60
|
params.data = data;
|
61
61
|
}
|
62
62
|
|
63
|
-
request(
|
63
|
+
request(url, params).then(function (res) {
|
64
64
|
if (res.result === 100 || res.success) {
|
65
65
|
resolve(res);
|
66
66
|
} else {
|