mooho-base-admin-plus 2.10.6 → 2.10.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.6",
4
+ "version": "2.10.7",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -233,15 +233,20 @@
233
233
  // 执行结果
234
234
  async action(outcome) {
235
235
  let isOK;
236
- if (this.isCustom && typeof this.$refs.customComponent.actionValidation === 'function') {
237
- isOK = await this.$refs.customComponent.actionValidation(outcome);
238
236
 
239
- if (!isOK) {
240
- return;
237
+ if (outcome.ignoreValidation == true) {
238
+ isOK = true;
239
+ } else {
240
+ if (this.isCustom && typeof this.$refs.customComponent.actionValidation === 'function') {
241
+ isOK = await this.$refs.customComponent.actionValidation(outcome);
242
+
243
+ if (!isOK) {
244
+ return;
245
+ }
241
246
  }
242
- }
243
247
 
244
- isOK = await this.form.validate();
248
+ isOK = await this.form.validate();
249
+ }
245
250
 
246
251
  if (!isOK) {
247
252
  this.error('Front_Msg_Form_Validate_Fail');