Skip to content

Commit 2afb2c4

Browse files
committed
修复vue2/3保存前异步语法写错的问题
1 parent 9f1d7f2 commit 2afb2c4

File tree

3 files changed

+9
-6
lines changed
  • Vol.Vue3版本/src/components/basic/ViewGrid
  • Vol.Vue/src/components/basic/ViewGridConfig
  • 开发版dev/Vue.NetCore/Vol.Vue/src/components/basic/ViewGridConfig

3 files changed

+9
-6
lines changed

Vol.Vue/src/components/basic/ViewGridConfig/methods.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,11 @@ let methods = {
580580
let _currentIsAdd = this.currentAction == this.const.ADD;
581581
if (_currentIsAdd) {
582582
//2020.12.06增加新建前异步处理方法
583-
if (!this.addBefore(formData) || await !this.addBeforeAsync(formData)) return;
583+
//2021.08.16修复异步语法写错的问题
584+
if (!this.addBefore(formData) || !await this.addBeforeAsync(formData)) return;
584585
} else {
585586
//2020.12.06增加修改前异步处理方法
586-
if (!this.updateBefore(formData) || await !this.updateBeforeAsync(formData)) return;
587+
if (!this.updateBefore(formData) || !await this.updateBeforeAsync(formData)) return;
587588
}
588589
let url = this.getUrl(this.currentAction);
589590
this.http.post(url, formData, true).then(x => {

Vol.Vue3版本/src/components/basic/ViewGrid/methods.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,11 @@ let methods = {
590590
let _currentIsAdd = this.currentAction == this.const.ADD;
591591
if (_currentIsAdd) {
592592
//2020.12.06增加新建前异步处理方法
593-
if (!this.addBefore(formData) || await !this.addBeforeAsync(formData)) return;
593+
//2021.08.16修复异步语法写错的问题
594+
if (!this.addBefore(formData) || !await this.addBeforeAsync(formData)) return;
594595
} else {
595596
//2020.12.06增加修改前异步处理方法
596-
if (!this.updateBefore(formData) || await !this.updateBeforeAsync(formData)) return;
597+
if (!this.updateBefore(formData) || !await this.updateBeforeAsync(formData)) return;
597598
}
598599
let url = this.getUrl(this.currentAction);
599600
this.http.post(url, formData, true).then(x => {

开发版dev/Vue.NetCore/Vol.Vue/src/components/basic/ViewGridConfig/methods.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,11 @@ let methods = {
580580
let _currentIsAdd = this.currentAction == this.const.ADD;
581581
if (_currentIsAdd) {
582582
//2020.12.06增加新建前异步处理方法
583-
if (!this.addBefore(formData) || await !this.addBeforeAsync(formData)) return;
583+
//2021.08.16修复异步语法写错的问题
584+
if (!this.addBefore(formData) || !await this.addBeforeAsync(formData)) return;
584585
} else {
585586
//2020.12.06增加修改前异步处理方法
586-
if (!this.updateBefore(formData) || await !this.updateBeforeAsync(formData)) return;
587+
if (!this.updateBefore(formData) || !await this.updateBeforeAsync(formData)) return;
587588
}
588589
let url = this.getUrl(this.currentAction);
589590
this.http.post(url, formData, true).then(x => {

0 commit comments

Comments
 (0)