iview menu动态添加open-names后效果

495 阅读1分钟

给指定导航添加ref属性,并使用this.$nextTick(())方法手动更新

            this.$nextTick(() => {
              this.$refs.menuind.updateOpened();
            });