山水共长天一色 3 gadi atpakaļ
vecāks
revīzija
6fc8e99115

+ 2 - 0
fhKeeper/formulahousekeeper/timesheet/src/routes.js

@@ -79,6 +79,7 @@ import centerManage from './views/centerManage/centerManage'
 
 Vue.use(Router)
 
+let autoRoute = sessionStorage.getItem('autoRoute')
 export const fixedRouter = [
     {
         path: '/login',
@@ -105,6 +106,7 @@ export const fixedRouter = [
         name: '项目管理',
         iconCls: 'fa fa-sticky-note',
         hidden:true,
+        redirect: autoRoute,
         leaf: true,
         children: [
             { path: '/projectInside/:id', component: projectInside, name: '任务看板' },

+ 2 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/Login.vue

@@ -300,9 +300,11 @@
                                 if (user.company.packageSimple == 1) {
                                     //简易模式,直接进入工时统计表
                                     this.$router.push({ path: '/simple' });
+                                    sessionStorage.setItem('autoRoute','/simple')
                                 } else {
                                     if(user.moduleList.length > 0) {
                                         this.$router.push({ path: user.moduleList[0].path })
+                                        sessionStorage.setItem('autoRoute',user.moduleList[0].path)
                                     }
                                 }
                             } else {