Browse Source

fix(KIP-7156): 临时停车,在绑定车牌号页面,点击返回按钮,应该返回车辆管理页面

John-Hong 2 years ago
parent
commit
acd133265d

+ 4 - 3
src/pages/parkingFee/vehicleAddOrEdit.vue

@@ -405,9 +405,10 @@ export default {
                 Toast({
                   message: '绑定车牌成功',
                   onClose: () => {
-                    this.$router.replace({
-                      path: `vehicleManagement`,
-                    });
+                    this.$router.back();
+                    // this.$router.push({
+                    //   path: `vehicleManagement`,
+                    // });
                     // this.$router.back();
                   },
                 });

+ 1 - 1
src/pages/parkingFee/vehicleManagement.vue

@@ -270,7 +270,7 @@ export default {
   methods: {
     // 添加车牌号
     toAdd() {
-      this.$router.replace({ path: 'vehicleAddOrEdit' });
+      this.$router.push({ path: 'vehicleAddOrEdit' });
     },
     // 跳转支付页面
     toPay(carno) {