Showing
3 changed files
with
13 additions
and
16 deletions
| ... | @@ -75,7 +75,7 @@ export const constantRoutes = [ | ... | @@ -75,7 +75,7 @@ export const constantRoutes = [ |
| 75 | // ] | 75 | // ] |
| 76 | // }, | 76 | // }, |
| 77 | { | 77 | { |
| 78 | - path: '/', | 78 | + path: '/reporting', |
| 79 | component: Layout, | 79 | component: Layout, |
| 80 | hidden: false, | 80 | hidden: false, |
| 81 | meta: { title: '申报数据管理', icon: 'upload' }, | 81 | meta: { title: '申报数据管理', icon: 'upload' }, | ... | ... |
| ... | @@ -38,18 +38,18 @@ const permission = { | ... | @@ -38,18 +38,18 @@ const permission = { |
| 38 | async GenerateRoutes({ commit }) { | 38 | async GenerateRoutes({ commit }) { |
| 39 | return new Promise(resolve => { | 39 | return new Promise(resolve => { |
| 40 | // 向后端请求路由数据 | 40 | // 向后端请求路由数据 |
| 41 | - // getRouters().then(res => { | 41 | + getRouters().then(res => { |
| 42 | - const sdata = constantRoutes | 42 | + const sdata = constantRoutes |
| 43 | - const rdata = constantRoutes | 43 | + const rdata = constantRoutes |
| 44 | - const sidebarRoutes = filterAsyncRouter(sdata) | 44 | + const sidebarRoutes = filterAsyncRouter(sdata) |
| 45 | - const rewriteRoutes = filterAsyncRouter(rdata, false, true) | 45 | + const rewriteRoutes = filterAsyncRouter(rdata, false, true) |
| 46 | - rewriteRoutes.push({ path: '*', redirect: '/reportingData', hidden: true }) | 46 | + rewriteRoutes.push({ path: '*', redirect: '/reportingData', hidden: true }) |
| 47 | - commit('SET_ROUTES', rewriteRoutes) | 47 | + commit('SET_ROUTES', rewriteRoutes) |
| 48 | - commit('SET_SIDEBAR_ROUTERS', sidebarRoutes) | 48 | + commit('SET_SIDEBAR_ROUTERS', sidebarRoutes) |
| 49 | - commit('SET_DEFAULT_ROUTES', sidebarRoutes) | 49 | + commit('SET_DEFAULT_ROUTES', sidebarRoutes) |
| 50 | - commit('SET_TOPBAR_ROUTES', sidebarRoutes) | 50 | + commit('SET_TOPBAR_ROUTES', sidebarRoutes) |
| 51 | - resolve(rewriteRoutes) | 51 | + resolve(rewriteRoutes) |
| 52 | - // }) | 52 | + }) |
| 53 | }) | 53 | }) |
| 54 | }, | 54 | }, |
| 55 | changeRoutes({ commit }, routes) { | 55 | changeRoutes({ commit }, routes) { | ... | ... |
| ... | @@ -7,9 +7,6 @@ export function getToken() { | ... | @@ -7,9 +7,6 @@ export function getToken() { |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | export function setToken(token) { | 9 | export function setToken(token) { |
| 10 | - localStorage.setItem('Ecom-managerPath', process.env.VUE_APP_BASE_API + '/manager-server') | ||
| 11 | - localStorage.setItem('Ecom-employeesPath', process.env.VUE_APP_BASE_API + '/bus-employees') | ||
| 12 | - localStorage.setItem('Ecom-customerPath', process.env.VUE_APP_BASE_API + '/bus-customer') | ||
| 13 | setTime(new Date().getTime()) | 10 | setTime(new Date().getTime()) |
| 14 | return localStorage.setItem(TokenKey, token) | 11 | return localStorage.setItem(TokenKey, token) |
| 15 | // return sessionStorage.setItem(TokenKey, token) | 12 | // return sessionStorage.setItem(TokenKey, token) | ... | ... |
-
Please register or login to post a comment