From 10c3bce9528daaf45682efa8b163e63c5006a72f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 十二月 2023 18:36:05 +0800
Subject: [PATCH] 必填只能编辑数量,非必填编辑销售单价,成本单价,数量+成本单价不填写可以通过校验填写则需要校验大于0

---
 src/router/index.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index b41fc78..e0ed381 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -136,14 +136,13 @@
   }
 }
 router.beforeEach(async (to, from, next) => {
-  console.log(to,from,"鐪嬬湅")
   try {
     const result = await hasPermission(to.path);
     console.log(result,"result")
     next();
-    if (!isSkip) {
-      next('/noData')
-    }
+    // if (!isSkip) {
+    //   next('/noData')
+    // }
   } catch (error) {
     console.error('Error in navigation guard:', error);
     next(); 

--
Gitblit v1.8.0