项目场景: 在element-ui使用组件dropdown 问题描述 报错 Uncaught TypeError: Cannot read properties of null (reading ‘setAttribute’) 原因分析: 在使用组件dropdown需要dropdown-menu配套使用,dropdow需要一个输出点,dropdown-menu可以为空,但不可没有! 解决方案: 在使用组件dropdown配套使用dropdown-menu