@netang/quasar 0.2.42 → 0.2.43
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 +4 -2
package/package.json
CHANGED
package/utils/$power.js
CHANGED
|
@@ -1128,13 +1128,15 @@ async function request(options) {
|
|
|
1128
1128
|
// 如果验证表单
|
|
1129
1129
|
if ($n_get(o.powerBtn.data, 'validate') !== false) {
|
|
1130
1130
|
|
|
1131
|
-
if (
|
|
1131
|
+
if (
|
|
1132
|
+
! o.$form.formRef
|
|
1133
|
+
|| ! o.$form.formRef?.value?.validate
|
|
1134
|
+
) {
|
|
1132
1135
|
throw new Error('没有绑定 fromRef')
|
|
1133
1136
|
}
|
|
1134
1137
|
|
|
1135
1138
|
// 验证表单
|
|
1136
1139
|
if (! await o.$form.formRef.value.validate()) {
|
|
1137
|
-
|
|
1138
1140
|
// 轻提示
|
|
1139
1141
|
$n_toast({
|
|
1140
1142
|
message: '表单中有无效值',
|