当前位置:网站首页>Click El dropdown item/@click.native
Click El dropdown item/@click.native
2022-07-26 13:22:00 【Suzerk】
I'm learning vue Use element Components are often used Dropdown The drop-down menu , For Click el-dropdown-item The event of triggers a jump @click="logout()" You can't , Give me a vue When a component binds an event , To add native.
<el-dropdown-item divided="true" @click.native="logout()"
>Log Out</el-dropdown-item>
methods: {
logout() {
localStorage.clear();
this.$router.push({
name: "login" });
},
},
边栏推荐
- 【开源之美】nanomsg(2) :req/rep 模式
- The child component triggers the defineemits of the parent component: the child component passes values to the parent component
- JVM: what does the class loading subsystem do? What is it made of? What eight part essay do you need to remember?
- B+树(5)myISAM简介 --mysql从入门到精通(十七)
- 银行业客户体验管理现状与优化策略分析
- 解决方案丨5G技术助力搭建智慧园区
- Solve the problem that the remote host cannot connect to the MySQL database
- Can I take your subdomain? Exploring Same-Site Attacks in the Modern Web
- Unicode file parsing methods and existing problems
- A college archives management system based on asp.net
猜你喜欢

基于C#开放式TCP通信建立与西门子PLC的socket通信示例

Implementation of SAP ABAP daemon

二叉树的初阶笔记

维度灾难 维数灾难 暂记
![[applet] why can't the onreachbottom event be triggered? (one second)](/img/da/3641040c63f6db4d227dcf2ff89919.png)
[applet] why can't the onreachbottom event be triggered? (one second)

1312_ Apply 7z command for compression and decompression

Niuke brush sql---2

Solution 5g technology helps build smart Parks

panic: Error 1045: Access denied for user ‘root‘@‘117.61.242.215‘ (using password: YES)

目标检测网络R-CNN 系列
随机推荐
解决远程主机无法连接mysql数据库的问题
基于Bézier曲线的三维造型与渲染
key&key_len&ref&filtered(4)—mysql执行计划(五十)
冒泡排序的时间复杂度分析
panic: Error 1045: Access denied for user ‘root‘@‘117.61.242.215‘ (using password: YES)
LeetCode 263.丑数
The child component triggers the defineemits of the parent component: the child component passes values to the parent component
MySQL data directory (2) -- table data structure (XXV)
JSON数据传递参数&日期型参数传递
Golang port scanning design
Use grid to realize left, middle and right layout, and the middle content is adaptive
算法--连续数列(Kotlin)
同花顺开的账户安全吗?
解决方案丨5G技术助力搭建智慧园区
Elementary notes of binary tree
基于Locust框架进行文件上传下载性能测试
【开源之美】nanomsg(2) :req/rep 模式
【花雕动手做】有趣好玩的音乐可视化系列小项目(12)---米管快速节奏灯
Streamnational team culture: a "transparent" company
终极套娃 2.0 | 云原生交付的封装