Property “visible“ must be accessed with “$data.visible“ because properties解决方式
[Vue warn]: data functions should return an object出现的原因是 结构未定义导致的 例如const{roles}=awaitstore.dispatch('user/getInfo') 我的那个返回没有roles 属性。解决方式const{roles=['admin']}=awaitstore.dispatch('user/getInfo') 好好检查一下,我调试了好几个小时.....