eoss-ui 0.4.52 → 0.4.54
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/lib/button-group.js +3 -0
- package/lib/button.js +3 -0
- package/lib/checkbox-group.js +3 -0
- package/lib/data-table-form.js +3 -0
- package/lib/data-table.js +3 -0
- package/lib/date-picker.js +3 -0
- package/lib/dialog.js +3 -0
- package/lib/eoss-ui.common.js +79 -117
- package/lib/flow-group.js +3 -0
- package/lib/flow-list.js +3 -0
- package/lib/flow.js +49 -94
- package/lib/form.js +3 -0
- package/lib/handle-user.js +3 -0
- package/lib/handler.js +3 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +3 -0
- package/lib/input.js +3 -0
- package/lib/login.js +18 -12
- package/lib/main.js +3 -0
- package/lib/mainComp.js +3 -0
- package/lib/nav.js +3 -0
- package/lib/page.js +3 -0
- package/lib/player.js +3 -0
- package/lib/qr-code.js +3 -0
- package/lib/radio-group.js +3 -0
- package/lib/select-ganged.js +3 -0
- package/lib/select.js +3 -0
- package/lib/selector-panel.js +3 -0
- package/lib/selector.js +3 -0
- package/lib/sizer.js +3 -0
- package/lib/steps.js +3 -0
- package/lib/switch.js +3 -0
- package/lib/table-form.js +3 -0
- package/lib/tabs.js +3 -0
- package/lib/tips.js +3 -0
- package/lib/tree-group.js +3 -0
- package/lib/tree.js +3 -0
- package/lib/upload.js +3 -0
- package/lib/utils/util.js +3 -0
- package/lib/wujie.js +3 -0
- package/lib/wxlogin.js +3 -0
- package/package.json +1 -1
- package/packages/flow/src/main.vue +7 -9
- package/packages/flow/src/startTaskRead.vue +2 -6
- package/packages/login/src/main.vue +11 -9
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -0
package/lib/input-number.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/input.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/login.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
|
@@ -2819,7 +2822,7 @@ function normalizeComponent(
|
|
|
2819
2822
|
// ESM COMPAT FLAG
|
|
2820
2823
|
__webpack_require__.r(__webpack_exports__);
|
|
2821
2824
|
|
|
2822
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
2825
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=9df7b90c&
|
|
2823
2826
|
var render = function () {
|
|
2824
2827
|
var _vm = this
|
|
2825
2828
|
var _h = _vm.$createElement
|
|
@@ -2921,7 +2924,7 @@ var render = function () {
|
|
|
2921
2924
|
{ staticClass: "es-login-form-box" },
|
|
2922
2925
|
[
|
|
2923
2926
|
_vm.isShow(_vm.active) &&
|
|
2924
|
-
(_vm.active == 0 || _vm.active == 2)
|
|
2927
|
+
(_vm.active == 0 || _vm.active == 2 || _vm.active == 12)
|
|
2925
2928
|
? [
|
|
2926
2929
|
_c(
|
|
2927
2930
|
"el-form",
|
|
@@ -3090,10 +3093,11 @@ var render = function () {
|
|
|
3090
3093
|
name: "show",
|
|
3091
3094
|
rawName: "v-show",
|
|
3092
3095
|
value:
|
|
3093
|
-
_vm.active == 2
|
|
3096
|
+
(_vm.active == 2 ||
|
|
3097
|
+
_vm.active == 12) &&
|
|
3094
3098
|
_vm.showVerifyCode,
|
|
3095
3099
|
expression:
|
|
3096
|
-
"active == 2 && showVerifyCode",
|
|
3100
|
+
"(active == 2 || active == 12) && showVerifyCode",
|
|
3097
3101
|
},
|
|
3098
3102
|
],
|
|
3099
3103
|
staticClass: "es-get-code",
|
|
@@ -3668,7 +3672,7 @@ var staticRenderFns = []
|
|
|
3668
3672
|
render._withStripped = true
|
|
3669
3673
|
|
|
3670
3674
|
|
|
3671
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
3675
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=9df7b90c&
|
|
3672
3676
|
|
|
3673
3677
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=4f5da52e&
|
|
3674
3678
|
var resetPasswordvue_type_template_id_4f5da52e_render = function () {
|
|
@@ -4643,7 +4647,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4643
4647
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
4644
4648
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
4645
4649
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
4646
|
-
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' }
|
|
4650
|
+
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' },
|
|
4651
|
+
12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
|
|
4647
4652
|
} : {
|
|
4648
4653
|
0: { type: '0', icon: 'es-icon-jianpan', name: '账号登录' },
|
|
4649
4654
|
1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
|
|
@@ -4656,7 +4661,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4656
4661
|
type: '11',
|
|
4657
4662
|
icon: 'es-icon-wodeyouxiang',
|
|
4658
4663
|
name: '邮箱登录'
|
|
4659
|
-
}
|
|
4664
|
+
},
|
|
4665
|
+
12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
|
|
4660
4666
|
};
|
|
4661
4667
|
},
|
|
4662
4668
|
icons: function icons() {
|
|
@@ -4964,7 +4970,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4964
4970
|
this.app = res.appName || res.subsystemName;
|
|
4965
4971
|
this.qrimg = res.qrimg || res.qrImg;
|
|
4966
4972
|
this.loginModel = res.loginModel;
|
|
4967
|
-
// this.loginModel = '0,3,11,6,9,
|
|
4973
|
+
// this.loginModel = '0,3,11,6,9,12';
|
|
4968
4974
|
this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
|
|
4969
4975
|
this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
|
|
4970
4976
|
if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
|
|
@@ -5015,7 +5021,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5015
5021
|
}
|
|
5016
5022
|
var data = {};
|
|
5017
5023
|
var flag = false;
|
|
5018
|
-
if (this.active == 2) {
|
|
5024
|
+
if (this.active == 2 || this.active == 12) {
|
|
5019
5025
|
if (!this.formData.username) {
|
|
5020
5026
|
this.$refs.login.validateField('username');
|
|
5021
5027
|
return false;
|
|
@@ -5060,7 +5066,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5060
5066
|
}, 1000);
|
|
5061
5067
|
util["a" /* default */].ajax({
|
|
5062
5068
|
method: 'post',
|
|
5063
|
-
url: this.active ==
|
|
5069
|
+
url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
|
|
5064
5070
|
data: data
|
|
5065
5071
|
}).then(function (res) {
|
|
5066
5072
|
_this4.$message({
|
|
@@ -5098,7 +5104,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5098
5104
|
}) : _this5.formData.password,
|
|
5099
5105
|
identifyingCode: _this5.formData.identifyingCode,
|
|
5100
5106
|
identifyingId: _this5.identifyingId
|
|
5101
|
-
} : _this5.active == '
|
|
5107
|
+
} : _this5.active == '12' ? {
|
|
5102
5108
|
username: _this5.formData.username,
|
|
5103
5109
|
password: _this5.secret && _this5.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
5104
5110
|
data: _this5.formData.password,
|
|
@@ -5142,7 +5148,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5142
5148
|
var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
|
|
5143
5149
|
util["a" /* default */].ajax({
|
|
5144
5150
|
method: 'post',
|
|
5145
|
-
url: this.active == '0' ? this.actionUrl : this.active == '
|
|
5151
|
+
url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
|
|
5146
5152
|
data: extUserBindHandleId ? mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
|
|
5147
5153
|
}).then(function (res) {
|
|
5148
5154
|
_this6.submit = false;
|
package/lib/main.js
CHANGED
|
@@ -101,6 +101,8 @@ module.exports =
|
|
|
101
101
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
102
102
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
103
103
|
|
|
104
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
105
|
+
|
|
104
106
|
/**
|
|
105
107
|
* 新封装公告方法规范:
|
|
106
108
|
* 1.方法顺序按字母顺序排列
|
|
@@ -204,6 +206,7 @@ var ajax = function ajax(_ref) {
|
|
|
204
206
|
});
|
|
205
207
|
// 请求拦截
|
|
206
208
|
http.interceptors.request.use(function (config) {
|
|
209
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
207
210
|
config.headers.common = getStorage();
|
|
208
211
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
209
212
|
var requestKey = getRequestKey(config);
|
package/lib/mainComp.js
CHANGED
|
@@ -101,6 +101,8 @@ module.exports =
|
|
|
101
101
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
102
102
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
103
103
|
|
|
104
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
105
|
+
|
|
104
106
|
/**
|
|
105
107
|
* 新封装公告方法规范:
|
|
106
108
|
* 1.方法顺序按字母顺序排列
|
|
@@ -204,6 +206,7 @@ var ajax = function ajax(_ref) {
|
|
|
204
206
|
});
|
|
205
207
|
// 请求拦截
|
|
206
208
|
http.interceptors.request.use(function (config) {
|
|
209
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
207
210
|
config.headers.common = getStorage();
|
|
208
211
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
209
212
|
var requestKey = getRequestKey(config);
|
package/lib/nav.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/page.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/player.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/qr-code.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/radio-group.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/select-ganged.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/select.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/selector-panel.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/selector.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/sizer.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/steps.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/switch.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/table-form.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/tabs.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/tips.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/tree-group.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/tree.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/upload.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/utils/util.js
CHANGED
|
@@ -2,6 +2,8 @@ exports.__esModule = true;
|
|
|
2
2
|
|
|
3
3
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
4
4
|
|
|
5
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
6
|
+
|
|
5
7
|
var _api = require('../config/api');
|
|
6
8
|
|
|
7
9
|
var _axios = require('axios');
|
|
@@ -120,6 +122,7 @@ var ajax = function ajax(_ref) {
|
|
|
120
122
|
});
|
|
121
123
|
// 请求拦截
|
|
122
124
|
http.interceptors.request.use(function (config) {
|
|
125
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
123
126
|
config.headers.common = getStorage();
|
|
124
127
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
125
128
|
var requestKey = getRequestKey(config);
|
package/lib/wujie.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|
package/lib/wxlogin.js
CHANGED
|
@@ -102,6 +102,8 @@ module.exports =
|
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
105
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* 新封装公告方法规范:
|
|
107
109
|
* 1.方法顺序按字母顺序排列
|
|
@@ -205,6 +207,7 @@ var ajax = function ajax(_ref) {
|
|
|
205
207
|
});
|
|
206
208
|
// 请求拦截
|
|
207
209
|
http.interceptors.request.use(function (config) {
|
|
210
|
+
config.header && (config.headers = _extends({}, config.headers, config.header));
|
|
208
211
|
config.headers.common = getStorage();
|
|
209
212
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
210
213
|
var requestKey = getRequestKey(config);
|