【问题标题】:Why Router link does not work in Firefox and IE but working fine in Safari and Chrome in vue js?为什么路由器链接在 Firefox 和 IE 中不起作用,但在 Safari 和 Chrome 中的 vue js 中运行良好?
【发布时间】:2018-03-28 23:17:06
【问题描述】:

Here is my html code :
  <button type="button"  class="btn btn-default btn-block" v-for="x in filterName" v-on:click="passuserid(x.rsid)"> <router-link v-bind:to="'/combo/'"><b>{{x.last_name}}</b> {{x.first_name}}

            </router-link></button>

这是路线代码:

export const routes =[
    { path:'', component: ContentArea},
    { path:'/combo/', component: Comparison }
  ];

【问题讨论】:

  • 只支持符合ES5的浏览器(不支持IE8及以下)。你用的是什么版本的火狐?
  • 火狐 56.0(64 位)

标签: vuejs2 vue-component vue-router


【解决方案1】:

尝试使用 li 代替按钮。

<li class="btn btn-default btn-block" v-for="x in filterName" v-on:click="passuserid(x.rsid)">
               <router-link to="/combo">{{x.last_name}}</b> {{x.first_name}}</router-link>
             </li>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-29
    • 1970-01-01
    • 1970-01-01
    • 2010-11-06
    相关资源
    最近更新 更多