@airpower/web 1.5.1 → 1.5.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/http/Http.d.ts +1 -1
- package/dist/main.js +9 -3
- package/package.json +1 -1
package/dist/http/Http.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -14147,6 +14147,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14147
14147
|
emitValue();
|
|
14148
14148
|
emitBlur();
|
|
14149
14149
|
}
|
|
14150
|
+
watch([props.list, props.tree], () => {
|
|
14151
|
+
dictionary.value = props.list ? props.list : formConfig.value && fieldConfig.value?.dictionary ? fieldConfig.value.dictionary.toArray() : void 0;
|
|
14152
|
+
}, {
|
|
14153
|
+
deep: true,
|
|
14154
|
+
immediate: true
|
|
14155
|
+
});
|
|
14150
14156
|
watch(value, () => {
|
|
14151
14157
|
emitValue();
|
|
14152
14158
|
});
|
|
@@ -14983,7 +14989,7 @@ class Http {
|
|
|
14983
14989
|
/**
|
|
14984
14990
|
* ### 是否携带 `Cookies`
|
|
14985
14991
|
*/
|
|
14986
|
-
|
|
14992
|
+
withCookie = false;
|
|
14987
14993
|
/**
|
|
14988
14994
|
* ### 请求头
|
|
14989
14995
|
*/
|
|
@@ -15040,7 +15046,7 @@ class Http {
|
|
|
15040
15046
|
* ### 允许携带 `Cookies`
|
|
15041
15047
|
*/
|
|
15042
15048
|
withCredentials() {
|
|
15043
|
-
this.
|
|
15049
|
+
this.withCookie = true;
|
|
15044
15050
|
return this;
|
|
15045
15051
|
}
|
|
15046
15052
|
/**
|
|
@@ -15183,7 +15189,7 @@ class Http {
|
|
|
15183
15189
|
axiosConfig.method = this.method;
|
|
15184
15190
|
axiosConfig.data = body;
|
|
15185
15191
|
axiosConfig.params = params;
|
|
15186
|
-
axiosConfig.withCredentials = this.
|
|
15192
|
+
axiosConfig.withCredentials = this.withCookie;
|
|
15187
15193
|
const response = new HttpResponse();
|
|
15188
15194
|
try {
|
|
15189
15195
|
const res = await axios.request(axiosConfig);
|