@netang/quasar 0.1.27 → 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 +9 -1
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
|
})
|
|
@@ -1113,7 +1116,7 @@ async function request(options) {
|
|
|
1113
1116
|
|
|
1114
1117
|
// 如果是渲染页面
|
|
1115
1118
|
// 说明该页面在 <table-splitter> 组件内部被渲染, 则不需要关闭当前窗口
|
|
1116
|
-
if ($n_has($route.query, '
|
|
1119
|
+
if ($n_has($route.query, 'n_render_page') && $route.query.n_render_page === 1) {
|
|
1117
1120
|
// 则无任何操作
|
|
1118
1121
|
return
|
|
1119
1122
|
}
|
|
@@ -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
|