fix(我的工作台): 页面报错问题

--user=郭雨琦
如果没有相应权限查看列表,我的工作台我的仪表盘页面会报错
This commit is contained in:
guoyuqi 2022-03-23 11:31:22 +08:00 committed by fit2-zhao
parent a6cdec7015
commit 3a75f6d4eb
1 changed files with 4 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<template>
<ms-chart v-if="visible && data.length > 0" :options="options" :autoresize ="true" style="width: 100%"/>
<ms-chart v-if="visible && pieData.length > 0" :options="options" :autoresize ="true" style="width: 100%"/>
</template>
<script>
@ -43,7 +43,7 @@ export default {
labelLine: {
show: true
},
data: this.data,
data: this.pieData,
colorBy: "data"
}
]
@ -69,19 +69,13 @@ export default {
return ['40%', '70%']
}
},
data: {
pieData: {
type: Array,
default() {
return []
}
}
},
watch: {
data() {
}
},
}
}
</script>