vue的手机端框架mint-ui头部header组件实现返回到上一个浏览页面

<mt-header title="中文号主页" fixed>
      <router-link to="" slot="left">
        <mt-button icon="back" @click="$router.back(-1)"></mt-button>
      </router-link>
</mt-header>

给里面的button按钮加click事件即可。不写router-link的跳转链接。

posted @ 2018-06-25 17:23  蓓蕾心晴  阅读(4206)  评论(0编辑  收藏  举报