@itshixun/qckeditor-vue2 1.0.3 → 1.0.4
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12158,13 +12158,13 @@ class Pi {
|
|
|
12158
12158
|
_initListeners(e, t, a) {
|
|
12159
12159
|
const i = this.xhr, l = this.loader, o = `文件上传失败: ${a.name}`;
|
|
12160
12160
|
i.addEventListener("error", () => t(o)), i.addEventListener("abort", () => t()), i.addEventListener("load", () => {
|
|
12161
|
-
var f, p;
|
|
12161
|
+
var f, p, b;
|
|
12162
12162
|
const u = i.response;
|
|
12163
12163
|
if (!u || u.error || i.status >= 400) {
|
|
12164
|
-
const
|
|
12165
|
-
return t(
|
|
12164
|
+
const y = ((f = u == null ? void 0 : u.error) == null ? void 0 : f.message) || (u == null ? void 0 : u.message) || o;
|
|
12165
|
+
return t(y);
|
|
12166
12166
|
}
|
|
12167
|
-
const c = u.default || u.url || ((p = u.data) == null ? void 0 : p.url) || "";
|
|
12167
|
+
const c = u.default || u.url || ((p = u.data) == null ? void 0 : p.url) || ((b = u.urls) == null ? void 0 : b.default) || "";
|
|
12168
12168
|
e({
|
|
12169
12169
|
default: c,
|
|
12170
12170
|
...u
|