LD 5 лет назад
Родитель
Сommit
ea2978e1ba
1 измененных файлов с 2 добавлено и 8 удалено
  1. 2 8
      resources/views/order/issue/edit.blade.php

+ 2 - 8
resources/views/order/issue/edit.blade.php

@@ -211,14 +211,6 @@
                 },
             },
             methods: {
-                asyncMethodChain(func){
-                    return new Promise(function (resolve,error) {
-                        if(1){
-                            error();
-                        }
-                        resolve();
-                    })
-                },
                 submitFake(){
                     let _this = this;
                     let p= new Promise(function (resolve) {
@@ -238,6 +230,8 @@
                                 tempTip.setDuration(4000);
                                 tempTip.show('网络异常:' + err);
                             });
+                        }else{
+                            resolve();
                         }
                     })
                     p.then(this.orderIssueUpdate);