Bläddra i källkod

登录跳转档案统计

duy 2 år sedan
förälder
incheckning
cd56abfa2c

+ 1 - 1
src/layout/modules/MenuBar.vue

@@ -4,7 +4,7 @@
             <div class="hc-aside-menu-item">
                 <div class="menu---item">
                     <HcIcon name="home-3" :fill="curKey === 'home-index'" class="hc-menu-icon"/>
-                    <div class="name">首页</div>
+                    <div class="name">数据看板</div>
                 </div>
             </div>
         </el-menu-item>

+ 2 - 2
src/router/modules/base.js

@@ -22,13 +22,13 @@ export default [
         path: '/home',
         name: 'home',
         redirect: '/home/index',
-        meta: {title: '首页'},
+        meta: {title: '数据看板'},
         component: Layout,
         children: [
             {
                 path: '/home/index',
                 name: 'home-index',
-                meta: {title: '首页'},
+                meta: {title: '数据看板'},
                 component: () => import('~src/views/home/index.vue')
             }
         ],

+ 5 - 1
src/views/login/index.vue

@@ -114,7 +114,11 @@ const formValidateClick = async () => {
             // } else {
             //     router.push({path: '/home/index'});
             // }
-            router.push({path: '/home/index'});
+            // router.push({path: '/home/index'});
+              router.push({path: '/using/stats'});//跳转到档案统计页面
+              setTimeout(() => {
+                  window?.location?.reload()  //刷新页面
+              }, 1000);
         }).catch(() => {
             loading.value = false;
         })

+ 5 - 1
src/views/user/auth.vue

@@ -69,7 +69,11 @@ const useAppLoginApi = async (form) => {
         loading.value = false
         isErrorShow.value = false
         window?.$message?.success('授权登录成功');
-        router.push({path: '/home/index'});
+        // router.push({path: '/home/index'});
+        router.push({path: '/using/stats'});//跳转到档案统计页面
+              setTimeout(() => {
+                  window?.location?.reload()  //刷新页面
+              }, 1000);
     }).catch(() => {
         window.$message?.error('授权登录失败')
         isErrorShow.value = true

+ 5 - 1
src/views/user/project.vue

@@ -138,7 +138,11 @@ const viewClick = (row) => {
     useAppState.setProjectInfo(row)
     useAppState.setProjectId(row?.id)
     //跳转
-    router.push({path: '/home/index'});
+    // router.push({path: '/home/index'});
+    router.push({path: '/using/stats'});//跳转到档案统计页面
+              setTimeout(() => {
+                  window?.location?.reload()  //刷新页面
+              }, 1000);
 }
 
 </script>