@jx3box/jx3box-editor 1.2.5 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Upload.vue +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Upload.vue CHANGED
@@ -137,12 +137,12 @@
137
137
  .post(API, fdata, {
138
138
  headers: {
139
139
  "Content-Type": "multipart/form-data",
140
- auth: {
140
+ },
141
+ withCredentials: true,
142
+ auth: {
141
143
  username: (localStorage && localStorage.getItem("token")) || "",
142
144
  password: "cms common request",
143
145
  },
144
- },
145
- withCredentials: true,
146
146
  })
147
147
  .then((res) => {
148
148
  if (res.data.code) {