From 4ed4a4ae3637162d13f69b6b21bd3a82ef74a16c Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期二, 16 七月 2024 10:18:19 +0800
Subject: [PATCH] 添加  报工人员存在工序,则直接跳转到报工界面

---
 north-glass-erp/northglass-erp/src/layout/MainErpView.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/layout/MainErpView.vue b/north-glass-erp/northglass-erp/src/layout/MainErpView.vue
index 6fd1acf..63e29c5 100644
--- a/north-glass-erp/northglass-erp/src/layout/MainErpView.vue
+++ b/north-glass-erp/northglass-erp/src/layout/MainErpView.vue
@@ -64,12 +64,16 @@
 
 //鎻愬彇妯″潡鍒楄〃
 let menuList=$ref([])
-onMounted(()=>{
-  request.get(`/menu/getMenu/${lang}`).then((res) => {
+onMounted(async ()=>{
+  await request.get(`/menu/getMenu/${lang}`).then((res) => {
     if(res.code==200){
       menuList= deepClone(res.data)
     }
   })
+
+  if(userStore.user.address!==null){
+      router.push({path:'/main/reportingWorks/addReportingWork'})
+  }
 
 })
 
@@ -98,9 +102,7 @@
     {deep:true}
 )
 
-router.beforeEach((to, from) => {
-  //return false
-})
+
 
 
 let openFlag = $ref(null)

--
Gitblit v1.8.0