@vtx/components 4.0.0-beta.61 → 4.0.0-beta.62

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.
@@ -130,7 +130,6 @@ function VtxTable(props) {
130
130
  var tablePlaceholder = Array.prototype.filter.call(rootDomRef.current.getElementsByTagName('tr'), function (dom) {
131
131
  return dom.className.includes('ant-table-placeholder');
132
132
  })[0];
133
- console.log('tablePlaceholder', tablePlaceholder);
134
133
  if (bodyDiv) {
135
134
  bodyDiv.style.minHeight = "".concat(bodyHeight - (rest.scrollY || 0), "px");
136
135
  }
@@ -207,10 +207,10 @@ var VtxImport2 = function VtxImport2(props) {
207
207
  xhr.onerror = function () {
208
208
  message.error(intl.getMessage('import.error', '上传失败'));
209
209
  };
210
- xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
211
- xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
212
210
  // 发送请求
213
211
  xhr.open('POST', '/cloudFile/common/uploadChunk', true);
212
+ xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
213
+ xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
214
214
  xhr.send(list[indexRef.current]);
215
215
  } else {
216
216
  mergeFile();
@@ -140,7 +140,6 @@ function VtxTable(props) {
140
140
  var tablePlaceholder = Array.prototype.filter.call(rootDomRef.current.getElementsByTagName('tr'), function (dom) {
141
141
  return dom.className.includes('ant-table-placeholder');
142
142
  })[0];
143
- console.log('tablePlaceholder', tablePlaceholder);
144
143
  if (bodyDiv) {
145
144
  bodyDiv.style.minHeight = "".concat(bodyHeight - (rest.scrollY || 0), "px");
146
145
  }
@@ -213,10 +213,10 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
213
213
  xhr.onerror = function () {
214
214
  _antd.message.error(intl.getMessage('import.error', '上传失败'));
215
215
  };
216
- xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
217
- xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
218
216
  // 发送请求
219
217
  xhr.open('POST', '/cloudFile/common/uploadChunk', true);
218
+ xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
219
+ xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
220
220
  xhr.send(list[indexRef.current]);
221
221
  } else {
222
222
  mergeFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.61",
3
+ "version": "4.0.0-beta.62",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",