Commit db3cbcdd authored by chenqikuai's avatar chenqikuai

fix

parent 4fb34dcc
...@@ -26,7 +26,7 @@ export default defineComponent({ ...@@ -26,7 +26,7 @@ export default defineComponent({
}, },
tabList() { tabList() {
const user = getUserMsg() const user = getUserMsg()
return (user && tabList.filter(i => i.roles.includes(user.role))) || tabList.filter(i => i.showNotLogin); return (user && tabList.filter(i => i.roles.includes(user.role2))) || tabList.filter(i => i.showNotLogin);
}, },
}, },
}); });
......
...@@ -6,7 +6,7 @@ export default [ ...@@ -6,7 +6,7 @@ export default [
routeName: 'Home', routeName: 'Home',
icon: 'icon-shouye-tab-xuanze1', icon: 'icon-shouye-tab-xuanze1',
icon1: 'icon-shouye-tab', icon1: 'icon-shouye-tab',
roles: [eRole.user, eRole.staff], roles: [eRole.user, eRole.staff, eRole.doNotChat],
showNotLogin: true, showNotLogin: true,
}, },
{ {
...@@ -23,7 +23,7 @@ export default [ ...@@ -23,7 +23,7 @@ export default [
routeName: 'Loan', routeName: 'Loan',
icon: 'icon-daikuan-tab-xuanze', icon: 'icon-daikuan-tab-xuanze',
icon1: 'icon-daikuan-tab', icon1: 'icon-daikuan-tab',
roles: [eRole.user, eRole.staff], roles: [eRole.user, eRole.staff, eRole.doNotChat],
showNotLogin: true, showNotLogin: true,
}, },
{ {
...@@ -31,7 +31,7 @@ export default [ ...@@ -31,7 +31,7 @@ export default [
routeName: 'Mine', routeName: 'Mine',
icon: 'icon-wode-tabdianji', icon: 'icon-wode-tabdianji',
icon1: 'icon-wode-tab', icon1: 'icon-wode-tab',
roles: [eRole.user, eRole.staff], roles: [eRole.user, eRole.staff,eRole.doNotChat],
showNotLogin: true, showNotLogin: true,
}, },
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment