iview中menu-item绑定事件失效

news/2024/7/19 16:18:50 标签: js

iview中menu-item绑定事件失效

主要是iview的menu-item的绑定点击事件要加native,才生效,如下所示。

 <MenuItem
              :name="item.id"
              v-for="item in item.children"
              :key="item.id"
              :class="{ hide: isCollapsed }"
              @click.native="go_other(item)"
            >
              <Icon :type="item.icon" />
              {{ item2.title }}
</MenuItem>

http://www.niftyadmin.cn/n/565986.html

相关文章

MinIO The access key ID you provided does not exist in our records问题解决

问题描述&#xff1a; The access key ID you provided does not exist in our records 问题分析&#xff1a; 1、提供的AcessKey在MinIO中不存在。 解决办法&#xff1a;MinIO在启动时会显示AcessKey&#xff0c;检查代码配置的AcessKey和MinIO中的AcessKey是否一致。 旭东…

使用git克隆项目时,显示这不是一个有效的仓库,解决办法如下

使用git克隆项目时&#xff0c;显示这不是一个有效的仓库&#xff0c;解决办法如下 这是因为没有删除之前的人在此电脑上的凭证&#xff0c;打开电脑的控制面板&#xff0c;进入用户账户 进入管理windows凭据 把之前的凭据都删除 最后再次克隆项目就会让你重新输入用户名密码&…

Spring Boot 实现将多个MinIO文件压缩成压缩包并下载至本地

1 Maven依赖 <dependency><groupId>cn.hutool</groupId><artifactId>hutool-all</artifactId><version>5.5.7</version></dependency><dependency><groupId>io.minio</groupId><artifactId>minio<…

css将img设置成黑白色的图片

css将img设置成黑白色的图片 为img加上如下属性即可&#xff0c;实现效果 img {-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter: gray;}

Spring Boot AOP面向切面编程使用(定义切入点、前置通知、后置通知、返回通知、异常通知、环绕通知)

1 AOP AOP为Aspect Oriented Programming的缩写&#xff0c;意为&#xff1a;面向切面编程&#xff0c;通过预编译方式和运行期间动态代理实现程序功能的统一维护的一种技术。AOP是OOP的延续&#xff0c;是软件开发中的一个热点&#xff0c;也是Spring框架中的一个重要内容&am…

MyBatis There is no getter for property named ‘xxx‘ in ‘class xxx‘问题解决

问题描述&#xff1a; org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named dataTime in class com.dto.UserDto 问题分析&#xff1a; 1、Mapper文件中参数出现了d…

在页面初始化时绑定带判断的数据,可以使用nextTick()

在页面初始化时绑定带判断的数据&#xff0c;可以使用nextTick() 有时在页面时需要在页面初始化时绑定一些数据&#xff0c;但有些数据是经过判断之后才进行赋值&#xff0c;所以就会造成第一次点击没有初始化&#xff0c;这时可以借助nextTick()来进行实现。在页面赋值前&…

MyBatis Mapper method ‘xxx‘ attempted to return null from a method with a primitive return type问题解决

问题描述&#xff1a; org.apache.ibatis.binding.BindingException: Mapper method com.dao.UserDao.getSum attempted to return null from a method with a primitive return type (long). 问题分析&#xff1a; 1、使用sum()函数时如果没有符合where条件的记录会返回nul…