@itshixun/qckeditor-vue3 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
|
@@ -12008,13 +12008,13 @@ class ui {
|
|
|
12008
12008
|
_initListeners(e, t, a) {
|
|
12009
12009
|
const n = this.xhr, l = this.loader, o = `文件上传失败: ${a.name}`;
|
|
12010
12010
|
n.addEventListener("error", () => t(o)), n.addEventListener("abort", () => t()), n.addEventListener("load", () => {
|
|
12011
|
-
var f, v;
|
|
12011
|
+
var f, v, b;
|
|
12012
12012
|
const u = n.response;
|
|
12013
12013
|
if (!u || u.error || n.status >= 400) {
|
|
12014
|
-
const
|
|
12015
|
-
return t(
|
|
12014
|
+
const y = ((f = u == null ? void 0 : u.error) == null ? void 0 : f.message) || (u == null ? void 0 : u.message) || o;
|
|
12015
|
+
return t(y);
|
|
12016
12016
|
}
|
|
12017
|
-
const c = u.default || u.url || ((v = u.data) == null ? void 0 : v.url) || "";
|
|
12017
|
+
const c = u.default || u.url || ((v = u.data) == null ? void 0 : v.url) || ((b = u.urls) == null ? void 0 : b.default) || "";
|
|
12018
12018
|
e({
|
|
12019
12019
|
default: c,
|
|
12020
12020
|
...u
|