@vtx/components 4.0.0-beta.77 → 4.0.0-beta.79

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.
@@ -166,6 +166,8 @@ function VtxImport(props) {
166
166
  };
167
167
  // 发送请求
168
168
  xhr.open('POST', '/cloudFile/common/uploadChunk', true);
169
+ xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
170
+ xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
169
171
  xhr.send(list[indexRef.current]);
170
172
  } else {
171
173
  mergeFile();
@@ -175,6 +175,8 @@ function VtxImport(props) {
175
175
  };
176
176
  // 发送请求
177
177
  xhr.open('POST', '/cloudFile/common/uploadChunk', true);
178
+ xhr.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
179
+ xhr.setRequestHeader('access_token', token ? "".concat(token) : '');
178
180
  xhr.send(list[indexRef.current]);
179
181
  } else {
180
182
  mergeFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.77",
3
+ "version": "4.0.0-beta.79",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",
@@ -213,7 +213,10 @@
213
213
  "xhr-mock": "^2.5.1",
214
214
  "yorkie": "^2.0.0",
215
215
  "zustand": "^4.5.7",
216
- "@vtx/utils": "^1.0.25"
216
+ "@vtx/utils": "^1.0.25",
217
+ "@wangeditor/editor": "^5.1.23",
218
+ "@wangeditor/editor-for-react": "^1.0.6",
219
+ "@wangeditor/plugin-upload-attachment": "^1.1.0"
217
220
  },
218
221
  "peerDependencies": {
219
222
  "@ant-design/icons": "^6.0.0",
@@ -222,10 +225,8 @@
222
225
  "react": "^18.3.1",
223
226
  "react-dom": "^18.3.1",
224
227
  "dayjs": "^1.11.18",
225
- "@vtx/utils": "^1.0.25",
226
- "@wangeditor/editor": "^5.1.23",
227
- "@wangeditor/editor-for-react": "^1.0.6",
228
- "@wangeditor/plugin-upload-attachment": "^1.1.0"
228
+ "@vtx/utils": "^1.0.25"
229
+
229
230
  },
230
231
  "peerDependenciesName": "声明宿主依赖",
231
232
  "packageManager": "pnpm@9.6.0",