router-link nested button button

benefit

1. Make the button click to jump without writing the click event separately

2. Router-link nests a large component to increase the click area

<router-link to="/main/retrieval" >
       <el-button style="width:100px;height: 35px;
                      background-color: #012459;
                      font-size: large;
                      color: white;">   返回
      
       </el-button>
</router-link>

Effect:

 

Guess you like

Origin blog.csdn.net/qq_53478650/article/details/129348940