|
@ -124,56 +124,56 @@ router.beforeEach((to, from, next) => { |
|
|
if (userType === 'work') { |
|
|
if (userType === 'work') { |
|
|
const customerId=localStorage.getItem('customerId') |
|
|
const customerId=localStorage.getItem('customerId') |
|
|
console.log('customerId:' ,customerId) |
|
|
console.log('customerId:' ,customerId) |
|
|
if(customerId==='1e68188b8f7e9ab15658c164bd5b3676'){ |
|
|
// if(customerId==='1e68188b8f7e9ab15658c164bd5b3676'){
|
|
|
// if(customerId==='45687aa479955f9d06204d415238f7cc'){
|
|
|
// // if(customerId==='45687aa479955f9d06204d415238f7cc'){
|
|
|
const menuList=[ |
|
|
// const menuList=[
|
|
|
{ |
|
|
// {
|
|
|
children: [], |
|
|
// children: [],
|
|
|
createdBy: "a76fc711807ac9827d7611b0f94ec220", |
|
|
// createdBy: "a76fc711807ac9827d7611b0f94ec220",
|
|
|
createdTime: "2020-08-26 16:38", |
|
|
// createdTime: "2020-08-26 16:38",
|
|
|
delFlag: null, |
|
|
// delFlag: null,
|
|
|
icon: "icon-database", |
|
|
// icon: "icon-database",
|
|
|
id: "abe812eb350f6b5eda575e268e50ac1c", |
|
|
// id: "abe812eb350f6b5eda575e268e50ac1c",
|
|
|
name: "定制功能配置", |
|
|
// name: "定制功能配置",
|
|
|
parentName: null, |
|
|
// parentName: null,
|
|
|
permissions: "", |
|
|
// permissions: "",
|
|
|
pid: "0", |
|
|
// pid: "0",
|
|
|
resourceList: null, |
|
|
// resourceList: null,
|
|
|
revision: 0, |
|
|
// revision: 0,
|
|
|
showFlag: 1, |
|
|
// showFlag: 1,
|
|
|
sort: 2, |
|
|
// sort: 2,
|
|
|
type: 0, |
|
|
// type: 0,
|
|
|
updatedBy: "a76fc711807ac9827d7611b0f94ec220", |
|
|
// updatedBy: "a76fc711807ac9827d7611b0f94ec220",
|
|
|
updatedTime: "2020-09-02 14:49", |
|
|
// updatedTime: "2020-09-02 14:49",
|
|
|
url: "customer/customize/ConfigItem", |
|
|
// url: "customer/customize/ConfigItem",
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
children: [], |
|
|
// children: [],
|
|
|
createdBy: "a76fc711807ac9827d7611b0f94ec220", |
|
|
// createdBy: "a76fc711807ac9827d7611b0f94ec220",
|
|
|
createdTime: "2020-08-26 16:38", |
|
|
// createdTime: "2020-08-26 16:38",
|
|
|
delFlag: null, |
|
|
// delFlag: null,
|
|
|
icon: "icon-file-text", |
|
|
// icon: "icon-file-text",
|
|
|
id: "8e55eba74c920c00c44c125e3bc73ddc", |
|
|
// id: "8e55eba74c920c00c44c125e3bc73ddc",
|
|
|
name: "居民端首页配置", |
|
|
// name: "居民端首页配置",
|
|
|
parentName: null, |
|
|
// parentName: null,
|
|
|
permissions: "", |
|
|
// permissions: "",
|
|
|
pid: "0", |
|
|
// pid: "0",
|
|
|
resourceList: null, |
|
|
// resourceList: null,
|
|
|
revision: 0, |
|
|
// revision: 0,
|
|
|
showFlag: 1, |
|
|
// showFlag: 1,
|
|
|
sort: 3, |
|
|
// sort: 3,
|
|
|
type: 0, |
|
|
// type: 0,
|
|
|
updatedBy: "a76fc711807ac9827d7611b0f94ec220", |
|
|
// updatedBy: "a76fc711807ac9827d7611b0f94ec220",
|
|
|
updatedTime: "2020-09-02 14:49", |
|
|
// updatedTime: "2020-09-02 14:49",
|
|
|
url: "customer/customize/MiniHome", |
|
|
// url: "customer/customize/MiniHome",
|
|
|
} |
|
|
// }
|
|
|
] |
|
|
// ]
|
|
|
|
|
|
|
|
|
window.SITE_CONFIG['menuList'] = menuList |
|
|
// window.SITE_CONFIG['menuList'] = menuList
|
|
|
fnAddDynamicMenuRoutes(window.SITE_CONFIG['menuList']) |
|
|
// fnAddDynamicMenuRoutes(window.SITE_CONFIG['menuList'])
|
|
|
|
|
|
// // next({ ...to, replace: true })
|
|
|
// next({ ...to, replace: true })
|
|
|
// next({ ...to, replace: true })
|
|
|
next({ ...to, replace: true }) |
|
|
// }else{
|
|
|
}else{ |
|
|
|
|
|
http |
|
|
http |
|
|
.get('/gov/access/menu/nav') |
|
|
.get('/gov/access/menu/nav') |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
@ -189,7 +189,7 @@ router.beforeEach((to, from, next) => { |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
next({ name: 'loginWork' }) |
|
|
next({ name: 'loginWork' }) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
// localStorage.getItem('customerId')
|
|
|
// localStorage.getItem('customerId')
|
|
|
// 1e68188b8f7e9ab15658c164bd5b3676
|
|
|
// 1e68188b8f7e9ab15658c164bd5b3676
|
|
|