yusheng 11 kuukautta sitten
vanhempi
commit
d27c04fe36

+ 1 - 0
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -953,6 +953,7 @@
               this.saveLoading = false;
             } catch (error) {
               this.saveLoading = false;
+              this.$router.push('/warehouseManagement/outgoingManagement');
               this.$message.error('保存失败!');
             }
           } else {

+ 1 - 0
src/views/warehouseManagement/stockManagement/add.vue

@@ -2172,6 +2172,7 @@
                 this.$router.push('/warehouseManagement/stockManagement');
               } catch (error) {
                 this.saveLoading = false;
+                this.$router.push('/warehouseManagement/stockManagement');
                 console.log('提交流程失败', error);
               }
             }