vue router replace

  • replace :to="{path:'/path1/param'}" 类似引入iframe的效果
      <div class="first_tabs" @click.capture="gotoNewsLists">

        <router-link :to="{ path: '/newsInfo/0'}" replace class="first_tab_item pointer" :class="{ first_tab_item_active: selectItem === 0 }" @click="changeNewsLists(0)">
              <i class="iconfont icon-yiliao"></i>
              {{ $t('news.tab1') }}
        </router-link>

      </div>
posted @ 2021-11-05 20:12  盘思动  阅读(401)  评论(0编辑  收藏  举报