vue-router.esm.js:1905 TypeError: Cannot convert undefined or null to object

环境:vue+vuex+element

报错原因

...mapState('isDialNumber')

mapState如果传递一个参数,参数必须是数组

...mapState(['isDialNumber'])