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

修改bug

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