@netang/quasar 0.1.28 → 0.1.29
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/package.json +1 -1
- package/utils/$power.js +8 -0
package/package.json
CHANGED
package/utils/$power.js
CHANGED
|
@@ -963,6 +963,8 @@ async function request(options) {
|
|
|
963
963
|
|
|
964
964
|
// 请求数据
|
|
965
965
|
let requestData = {}
|
|
966
|
+
// 请求之前数据
|
|
967
|
+
let _formDataClone = null
|
|
966
968
|
|
|
967
969
|
// 如果是提交表单
|
|
968
970
|
// --------------------------------------------------
|
|
@@ -1007,6 +1009,7 @@ async function request(options) {
|
|
|
1007
1009
|
|
|
1008
1010
|
// 合并请求原始表单数据
|
|
1009
1011
|
if ($n_isValidObject(o.$form.requestRawFormData.value)) {
|
|
1012
|
+
_formDataClone = $n_cloneDeep(o.$form.formData.value)
|
|
1010
1013
|
Object.assign(requestData, {
|
|
1011
1014
|
n__raw: o.$form.requestRawFormData.value
|
|
1012
1015
|
})
|
|
@@ -1159,6 +1162,11 @@ async function request(options) {
|
|
|
1159
1162
|
}
|
|
1160
1163
|
}
|
|
1161
1164
|
|
|
1165
|
+
// 设置原始数据
|
|
1166
|
+
if (_formDataClone !== null) {
|
|
1167
|
+
o.$form.setRaw(_formDataClone)
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1162
1170
|
// 请求成功执行
|
|
1163
1171
|
if (await $n_runAsync(o.requestSuccess)(Object.assign({ next }, resultData)) === false) {
|
|
1164
1172
|
return
|