Commit 87560f8e authored by 何鹏程's avatar 何鹏程

修改bug

parent 5474a9aa
......@@ -105,7 +105,7 @@ export default {
itemStyle: {
color: (color) => {
const item = this.colorList.find(i => i.name === color.name)
return item.color || '#333333'
return (item && item.color) || '#333333'
}
},
data: this.dataList
......
......@@ -74,7 +74,7 @@ router.beforeEach((to, from, next) => {
console.log('该页面无需登录即可访问')
next()
} else {
if (routers.length > 7 && _token && menu && userInfo) {
if (routers.length > 9 && _token && menu && userInfo) {
console.log('有数据无需登录')
next()
} else {
......
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