@sunggang/ui-lib 0.3.1 → 0.3.2
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/BaseCkeditor.esm.js +4 -3
- package/package.json +1 -1
package/BaseCkeditor.esm.js
CHANGED
|
@@ -63910,10 +63910,11 @@ function _ts_values(o) {
|
|
|
63910
63910
|
{
|
|
63911
63911
|
key: "_sendRequest",
|
|
63912
63912
|
value: function _sendRequest(t) {
|
|
63913
|
+
var _n_state;
|
|
63913
63914
|
var e = new FormData;
|
|
63914
|
-
e.append(this.fieldName, t, t.name), console.log(this.fieldName), console.log(this.uploadUrl)
|
|
63915
|
-
var _$n = JSON.parse(localStorage.getItem("sg-auth-storage")), o =
|
|
63916
|
-
|
|
63915
|
+
e.append(this.fieldName, t, t.name), console.log(this.fieldName), console.log(this.uploadUrl);
|
|
63916
|
+
var _$n = JSON.parse(localStorage.getItem("sg-auth-storage")), o = (_$n === null || _$n === void 0 ? void 0 : (_n_state = _$n.state) === null || _n_state === void 0 ? void 0 : _n_state.access_token) || _$n, i = this.authToken || o;
|
|
63917
|
+
i && this.xhr.setRequestHeader("Authorization", i), this.xhr.send(e);
|
|
63917
63918
|
}
|
|
63918
63919
|
}
|
|
63919
63920
|
]);
|